aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/Makefile
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-10 17:02:49 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-10 17:02:49 +0100
commitb5fa90ac8ea579eb2b4223051e3c35d78a7b28b2 (patch)
tree51768b133193fd10c1ea4d715f000163a107018a /tools/python/Makefile
parent0198288b1f5f296f043439bd647877effb870df7 (diff)
parent224cab0dfd3e7696fec21acf5e0cd821328fbe49 (diff)
downloadxen-b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2.tar.gz
xen-b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2.tar.bz2
xen-b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2.zip
build: Clean up use of .PHONY
* Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
Diffstat (limited to 'tools/python/Makefile')
-rw-r--r--tools/python/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/python/Makefile b/tools/python/Makefile
index 87d08a22e6..b3e404cb9f 100644
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -1,12 +1,14 @@
XEN_ROOT = ../..
include $(XEN_ROOT)/tools/Rules.mk
-.PHONY: all build install clean
-
+.PHONY: all
all: build
+
+.PHONY: build
build:
CFLAGS="$(CFLAGS)" python setup.py build
+.PHONY: install
ifndef XEN_PYTHON_NATIVE_INSTALL
install: all
CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --force
@@ -15,8 +17,10 @@ install: all
CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
endif
+.PHONY: test
test:
export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); python test.py -b -u
+.PHONY: clean
clean:
rm -rf build *.pyc *.pyo *.o *.a *~