mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +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)
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue