2013-12-11 19:25:42 +00:00
|
|
|
ifneq ($(wildcard projects.txt),)
|
2014-03-21 12:35:28 +00:00
|
|
|
PROJECTS = $(shell cat projects.txt | sed '/^ *\#/ d')
|
|
|
|
|
# TODO: this could be nicer
|
|
|
|
|
CVS_PROJECTS = $(PROJECTS)
|
2013-12-11 19:25:42 +00:00
|
|
|
else
|
2014-03-21 12:35:28 +00:00
|
|
|
PROJECTS = $(dir $(wildcard */CVS */.git))
|
|
|
|
|
CVS_PROJECTS = $(dir $(wildcard */CVS))
|
2013-12-11 19:25:42 +00:00
|
|
|
endif
|
2013-12-11 19:13:33 +00:00
|
|
|
|
2012-08-06 10:45:27 +00:00
|
|
|
WHOAMI = $(shell id -un)
|
2012-09-24 16:48:07 +00:00
|
|
|
RGIT = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh))
|
2012-08-06 10:45:27 +00:00
|
|
|
|
2012-08-01 18:37:01 +00:00
|
|
|
all:
|
2013-12-11 19:25:42 +00:00
|
|
|
por p in $(PROJECTS); do make -C $$p || break; done
|
2012-08-01 18:37:01 +00:00
|
|
|
clean:
|
2013-12-11 19:25:42 +00:00
|
|
|
por p in $(PROJECTS); do make -C $$p clean || break; done
|
2012-08-01 18:37:01 +00:00
|
|
|
|
2014-07-24 14:22:36 +00:00
|
|
|
clean-dirs:
|
|
|
|
|
ls */dirs-all.done 2>/dev/null | sed 's%/.*%%' | xargs -r build.py -b $(shell pwd) clean
|
|
|
|
|
|
2012-08-01 18:37:01 +00:00
|
|
|
cpp:
|
2013-12-11 19:25:42 +00:00
|
|
|
@find $(PROJECTS) -name '*.cpp' | grep /worker/ | grep -ve "old\|tmp\|nomake\|new" | \
|
2012-09-24 16:48:07 +00:00
|
|
|
while read f; do d=`dirname $$f`; if [ $$d/generate_code.sh ]; then echo $$f; fi ;\
|
|
|
|
|
done
|
2012-08-01 18:37:01 +00:00
|
|
|
|
2013-12-11 19:13:33 +00:00
|
|
|
clone diff commit push:
|
2012-09-24 16:48:07 +00:00
|
|
|
$(RGIT) $@
|
2013-12-11 19:13:33 +00:00
|
|
|
|
2014-07-23 14:16:34 +00:00
|
|
|
git-push:
|
|
|
|
|
$(RGIT) push
|
|
|
|
|
|
2013-12-11 19:13:33 +00:00
|
|
|
update pull:
|
2013-12-11 19:25:42 +00:00
|
|
|
cvs update -dP $(CVS_PROJECTS)
|
2013-12-11 19:13:33 +00:00
|
|
|
$(RGIT) pull
|
|
|
|
|
|
2014-07-23 14:15:37 +00:00
|
|
|
git-pull:
|
|
|
|
|
$(RGIT) pull
|
|
|
|
|
|
2014-06-05 21:24:48 +00:00
|
|
|
status:
|
|
|
|
|
for p in $(CVS_PROJECTS); do test -f $$d/CVS || echo $$p; done
|
|
|
|
|
cvs status $(addsuffix VERSION,$(CVS_PROJECTS))
|
|
|
|
|
$(RGIT) status
|