jw-pkg/make/projects-dir.mk

22 lines
606 B
Makefile
Raw Normal View History

CVS_DIRS = $(dir $(wildcard */CVS))
WHOAMI = $(shell id -un)
RGIT = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh))
all:
for f in `cat projects.txt`; do make -C $$f || break; done
clean:
for f in `cat projects.txt | sed '/^ *#/ d'`; do make -C $$f clean || break; done
cpp:
@find `cat projects.txt` -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 ;\
done
clone diff commit push:
$(RGIT) $@
update pull:
cvs update -dP $(CVS_DIRS)
$(RGIT) pull