bitkeeper revision 1.1159.223.26 (41f2cdb6LNpheOtPoAKEUn-czlZFig)

Description: use DESTDIR correctly
Standard makefiles always attempt to install to the root(/).  Setting
DESTDIR is the normal way to install to an alternative location.
Setting prefix has the possibility of breaking programs, as the prefix
may have been embedded inside a compiled binary.

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2005-01-22 22:03:34 +00:00
1 parent 84a280c892
commit d2f5d53621
16 files changed
+77 -71

No files matched your search

+5 -1
View File
@@ -3,7 +3,11 @@ all:
python setup.py build
install: all
python setup.py install --home="$(prefix)/usr"
if [ "$(DESTDIR)" = "" ]; then \
python setup.py install; \
else \
python setup.py install --root="$(DESTDIR)"; \
fi
clean:
rm -rf build *.pyc *.pyo *.o *.a *~
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.