Browse Source

Support DESTDIR in the Makefile.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Nix 13 years ago
parent
commit
424b21b748
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -8,6 +8,8 @@ TESTRUNNER ?= unittest2.__main__
 endif
 RUNTEST = PYTHONPATH=.:$(PYTHONPATH) $(PYTHON) -m $(TESTRUNNER)
 
+DESTDIR=/
+
 all: build
 
 doc:: pydoctor
@@ -20,7 +22,7 @@ build::
 	$(SETUP) build_ext -i
 
 install::
-	$(SETUP) install
+	$(SETUP) install --root="$(DESTDIR)"
 
 check:: build
 	$(RUNTEST) dulwich.tests.test_suite