From: Zooko O'Whielacronx Date: Thu, 1 Feb 2007 22:49:52 +0000 (-0700) Subject: "make clean" recursively runs cleanup in subprojects (pyfec and Crypto) X-Git-Url: https://git.rkrishnan.org/Site/Content/Exhibitors/something?a=commitdiff_plain;h=d407e4f6067abd6093a7d72593d77c8ead700683;p=tahoe-lafs%2Ftahoe-lafs.git "make clean" recursively runs cleanup in subprojects (pyfec and Crypto) --- diff --git a/Makefile b/Makefile index d7502694..f1caa61b 100644 --- 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