summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorroot <root@lenny.newnewyork.local>2009-02-24 19:10:01 +0100
committerJasper Capel <jasper@newnewyork.nl>2009-02-25 19:57:14 +0100
commit5073a1bcbae9151732e99ce48da1311ec7b72172 (patch)
tree206c7f929a111c36bf3249365b9d8841f936969c /Makefile
parentef55db9ce7eccd30c91eac4eb639204e14edc7df (diff)
downloadcobbler-5073a1bcbae9151732e99ce48da1311ec7b72172.tar.gz
cobbler-5073a1bcbae9151732e99ce48da1311ec7b72172.tar.xz
cobbler-5073a1bcbae9151732e99ce48da1311ec7b72172.zip
Have the Makefile respect the DESTDIR env variable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c10bdfb4..358180ae 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,13 @@ build: manpage updatewui
python setup.py build -f
install: manpage updatewui
- python setup.py install -f
+ if [ $(DESTDIR) != "" ]
+ then
+ APPENDROOT = "--root $(DESTDIR)"
+ else
+ APPENDROOT = ""
+ fi
+ python setup.py install -f $APPENDROOT
devinstall:
make savestate