mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 15:23:54 +01:00
projects-dir.mk: Beautification
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1d5669e1a5
commit
8afa1a2c1a
1 changed files with 11 additions and 5 deletions
|
|
@ -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)
|
WHOAMI = $(shell id -un)
|
||||||
RGIT = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh))
|
RGIT = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh))
|
||||||
|
|
||||||
all:
|
all:
|
||||||
for f in `cat projects.txt`; do make -C $$f || break; done
|
por p in $(PROJECTS); do make -C $$p || break; done
|
||||||
clean:
|
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:
|
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 ;\
|
while read f; do d=`dirname $$f`; if [ $$d/generate_code.sh ]; then echo $$f; fi ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -17,6 +23,6 @@ clone diff commit push:
|
||||||
$(RGIT) $@
|
$(RGIT) $@
|
||||||
|
|
||||||
update pull:
|
update pull:
|
||||||
cvs update -dP $(CVS_DIRS)
|
cvs update -dP $(CVS_PROJECTS)
|
||||||
$(RGIT) pull
|
$(RGIT) pull
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue