proj/Makefile: Add target purge

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-09-17 07:10:04 +00:00
commit 1f11eedb75
2 changed files with 41 additions and 0 deletions

View file

@ -47,6 +47,7 @@ endif
PGIT = CLONE_PROJECTS="$(PROJECTS)" PGIT_CLONE_FROM_USER="$(JANWARE_USER)" /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh))
BUILD_PY = python ./ytools/devutil/scripts/build.py -b $(shell pwd) $(BUILD_PY_EXTRA_OPTS)
PURGE_SH = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/purge-stale-projects.sh /opt/ytools/bin/purge-stale-projects.sh))
EXCLUDE_FROM_BUILD = \
dspider-btools \
@ -146,3 +147,5 @@ clone.done:
$(PGIT) clone
touch $@
purge:
$(PURGE_SH)