ifneq ($(wildcard projects.txt),) PROJECTS = $(shell cat projects.txt | sed '/^ *\#/ d') # TODO: this could be nicer CVS_PROJECTS = $(PROJECTS) else PROJECTS = $(dir $(wildcard */CVS */.git)) CVS_PROJECTS = $(dir $(wildcard */CVS)) endif WHOAMI = $(shell id -un) RGIT = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh)) all: por p in $(PROJECTS); do make -C $$p || break; done clean: por p in $(PROJECTS); do make -C $$p clean || break; done 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 ;\ done clone diff commit push: $(RGIT) $@ update pull: cvs update -dP $(CVS_PROJECTS) $(RGIT) pull