projects-dir.mk: Beautification

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2013-12-11 19:25:42 +00:00
commit 8afa1a2c1a

View file

@ -1,15 +1,21 @@
CVS_DIRS = $(dir $(wildcard */CVS))
CVS_PROJECTS = $(dir $(wildcard */CVS))
ifneq ($(wildcard projects.txt),)
PROJECTS = $(shell cat projects.txt | sed '/^ *#/ d')
else
PROJECTS = fill me
endif
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
por p in $(PROJECTS); do make -C $$p || break; done
clean:
for f in `cat projects.txt | sed '/^ *#/ d'`; do make -C $$f clean || break; done
por p in $(PROJECTS); do make -C $$p clean || break; done
cpp:
@find `cat projects.txt` -name '*.cpp' | grep /worker/ | grep -ve "old\|tmp\|nomake\|new" | \
@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
@ -17,6 +23,6 @@ clone diff commit push:
$(RGIT) $@
update pull:
cvs update -dP $(CVS_DIRS)
cvs update -dP $(CVS_PROJECTS)
$(RGIT) pull