mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
"make clean" recursively runs cleanup in subprojects (pyfec and Crypto)
This commit is contained in:
parent
80fb94da65
commit
d407e4f606
7
Makefile
7
Makefile
@ -11,10 +11,13 @@ build: build-pyfec build-Crypto
|
|||||||
build-pyfec:
|
build-pyfec:
|
||||||
cd src/pyfec && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
|
cd src/pyfec && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
|
||||||
|
|
||||||
|
clean-pyfec:
|
||||||
|
cd src/pyfec && python ./setup.py clean
|
||||||
|
|
||||||
build-Crypto:
|
build-Crypto:
|
||||||
cd src/Crypto && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
|
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),)
|
ifneq ($(PYTHONPATH),)
|
||||||
PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
|
PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
|
||||||
@ -69,7 +72,7 @@ count-lines:
|
|||||||
@echo -n "TODO: "
|
@echo -n "TODO: "
|
||||||
@grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines
|
@grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines
|
||||||
|
|
||||||
clean:
|
clean: clean-pyfec clean-Crypto
|
||||||
rm -rf build
|
rm -rf build
|
||||||
rm -f debian
|
rm -f debian
|
||||||
rm -rf instdir
|
rm -rf instdir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user