aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xend
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-03-15 15:00:49 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2004-03-15 15:00:49 +0000
commit52a8efe1a7bd2e9896d7769347eb3611e36e5052 (patch)
treee951c36a1a6f85ca8f42b477355682e57c372e31 /tools/xend
parent74851d00abd8170a7b8482f7075ea3f6ea7c49b6 (diff)
downloadxen-52a8efe1a7bd2e9896d7769347eb3611e36e5052.tar.gz
xen-52a8efe1a7bd2e9896d7769347eb3611e36e5052.tar.bz2
xen-52a8efe1a7bd2e9896d7769347eb3611e36e5052.zip
bitkeeper revision 1.797 (4055c521Ophk9zIrp59mxPKyKg_0MA)
Makefile: Rationalise makefiles by folding dist option into install with a prefined prefix.
Diffstat (limited to 'tools/xend')
-rw-r--r--tools/xend/Makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/tools/xend/Makefile b/tools/xend/Makefile
index 1ea271e80e..93c0cfe1f7 100644
--- a/tools/xend/Makefile
+++ b/tools/xend/Makefile
@@ -4,22 +4,9 @@ all:
install: all
if [ "$(prefix)" = "" ]; then python setup.py install; \
- else python setup.py install --root "$(prefix)"; fi
- install --mode=755 xend $(prefix)/usr/sbin
-
-dist: all
- mkdir -p ../../../../install/lib/python
- for i in `find . -name 'xend_utils.so'` ; do \
- install --mode=755 $$i ../../../../install/lib/python/`basename $$i` ; \
- done
- python -c 'import py_compile, sys; py_compile.compile("XenoUtil.py")'
- install --mode=755 xend ../../../../install/sbin
+ else python setup.py install --home="$(prefix)"; fi
+ mkdir -p $(prefix)/usr/sbin
+ install -m0755 xend $(prefix)/usr/sbin
clean:
rm -rf build *.pyc *.pyo *.a *.so *.o *~ *.rpm
-
-$(BIN): $(OBJS)
- $(CC) -o $@ $^ -L../xc/lib -lxc
-
-%.o: %.c $(HDRS) Makefile
- $(CC) $(CFLAGS) -c -o $@ $<