ia64/xen-unstable

view tools/xenstat/xentop/Makefile @ 9669:c783f340bef8

Remove some bogus .PHONY Makefile declarations.
Fixes xentop installation.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Apr 11 09:58:04 2006 +0100 (2006-04-11)
parents b454a09cddb1
children edf0e488ea2a
line source
1 # Copyright (C) International Business Machines Corp., 2005
2 # Author: Josh Triplett <josht@us.ibm.com>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; under version 2 of the License.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 XEN_ROOT=../../..
14 include $(XEN_ROOT)/tools/Rules.mk
16 ifneq ($(XENSTAT_XENTOP),y)
17 .PHONY: all install xentop
18 all install xentop:
19 else
21 INSTALL = install
22 INSTALL_PROG = $(INSTALL) -m0755 -D
23 INSTALL_DATA = $(INSTALL) -m0644 -D
25 prefix=/usr
26 mandir=$(prefix)/share/man
27 man1dir=$(mandir)/man1
28 sbindir=$(prefix)/sbin
30 CFLAGS += -DGCC_PRINTF -Wall -Werror -I$(XEN_LIBXENSTAT)
31 LDFLAGS += -L$(XEN_LIBXENSTAT)
32 LDLIBS += -lxenstat -lncurses
34 .PHONY: all
35 all: xentop
37 .PHONY: install
38 install: xentop xentop.1
39 $(INSTALL_PROG) xentop $(DESTDIR)$(sbindir)/xentop
40 $(INSTALL_DATA) xentop.1 $(DESTDIR)$(man1dir)/xentop.1
42 endif
44 .PHONY: clean
45 clean:
46 rm -f xentop xentop.o