Makefile: $(PWD) doesn't always work, in particular the buildslaves don't
authorBrian Warner <warner@allmydata.com>
Thu, 1 Feb 2007 10:39:13 +0000 (03:39 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 1 Feb 2007 10:39:13 +0000 (03:39 -0700)
update environment variables like $(PWD) when the launch commands.

Makefile

index 7084f0fe69ec299a055bbdac0ae787f66c3b7983..d75026944ee956943da29166238152909e931014 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ build-pyfec:
 build-Crypto:
        cd src/Crypto && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
 
-INSTDIR=$(PWD)/instdir/lib/python$(shell $(PYTHON) -c 'import sys;print sys.version_info[0]').$(shell $(PYTHON) -c 'import sys;print sys.version_info[1]')/site-packages
+INSTDIR=$(BASE)/instdir/lib/python$(shell $(PYTHON) -c 'import sys;print sys.version_info[0]').$(shell $(PYTHON) -c 'import sys;print sys.version_info[1]')/site-packages
 
 ifneq ($(PYTHONPATH),)
 PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)