projs-dir.mk: Make targets "all" and "install" work

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-02-23 21:33:10 +00:00
commit a8bf726a17
2 changed files with 14 additions and 5 deletions

View file

@ -11,17 +11,26 @@ PROJECTS = $(shell cat projects.txt | sed '/^ *\#/ d')
# TODO: this could be nicer
CVS_PROJECTS = $(PROJECTS)
else
PROJECTS ?= $(dir $(wildcard */CVS */.git))
PROJECTS ?= $(patsubst %/,%,$(dir $(wildcard */CVS */.git)))
CVS_PROJECTS = $(filter $(dir $(wildcard */CVS)),$(PROJECTS))
endif
WHOAMI = $(shell id -un)
PGIT = CLONE_PROJECTS="$(PROJECTS)" CLONE_FROM_USER="$(shell whoami)" /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh))
EXCLUDE_FROM_BUILD = \
dspider-btools \
dspider-shared \
feedfs-dspcd \
casview \
dspfs \
feedfs-qt \
jux3
all:
for p in $(PROJECTS); do make -C $$p || break; done
clean:
for p in $(PROJECTS); do make -C $$p clean || break; done
all clean:
python ./ytools/devutil/scripts/build.py -b $(shell pwd) $@ $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
clean-dirs:
ls */dirs-all.done 2>/dev/null | sed 's%/.*%%' | xargs -r build.py -b $(shell pwd) clean