projects-dir.mk: Add target clean-dirs

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-07-24 14:22:36 +00:00
commit 54c30b92af

View file

@ -15,6 +15,9 @@ all:
clean:
por p in $(PROJECTS); do make -C $$p clean || break; done
clean-dirs:
ls */dirs-all.done 2>/dev/null | sed 's%/.*%%' | xargs -r build.py -b $(shell pwd) clean
cpp:
@find $(PROJECTS) -name '*.cpp' | grep /worker/ | grep -ve "old\|tmp\|nomake\|new" | \
while read f; do d=`dirname $$f`; if [ $$d/generate_code.sh ]; then echo $$f; fi ;\