]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
"make clean" recursively runs cleanup in subprojects (pyfec and Crypto)
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 1 Feb 2007 22:49:52 +0000 (15:49 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 1 Feb 2007 22:49:52 +0000 (15:49 -0700)
Makefile

index d75026944ee956943da29166238152909e931014..f1caa61bd321a30e0d35a4fca8ed62ed582c09e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,13 @@ build: build-pyfec build-Crypto
 build-pyfec:
        cd src/pyfec && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
 
+clean-pyfec:
+       cd src/pyfec && python ./setup.py clean
+
 build-Crypto:
        cd src/Crypto && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
 
-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
+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
 
 ifneq ($(PYTHONPATH),)
 PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
@@ -69,7 +72,7 @@ count-lines:
        @echo -n "TODO: "
        @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines
 
-clean:
+clean: clean-pyfec clean-Crypto
        rm -rf build
        rm -f debian
        rm -rf instdir