mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 06:30:38 +01:00
projects-dir.mk: Add target echo-required-pkg
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2a50ee3ff4
commit
ee7314e937
1 changed files with 14 additions and 7 deletions
|
|
@ -42,6 +42,8 @@ EXCLUDE_FROM_BUILD = \
|
||||||
feedfs-qt \
|
feedfs-qt \
|
||||||
jux3
|
jux3
|
||||||
|
|
||||||
|
BUILD_PROJECTS = $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
|
||||||
|
|
||||||
ifeq ($(JANWARE_USER),)
|
ifeq ($(JANWARE_USER),)
|
||||||
export JANWARE_USER = $(shell id -un)
|
export JANWARE_USER = $(shell id -un)
|
||||||
endif
|
endif
|
||||||
|
|
@ -60,21 +62,26 @@ endif
|
||||||
|
|
||||||
# ------------ commands
|
# ------------ commands
|
||||||
|
|
||||||
PGIT = CLONE_PROJECTS="$(PROJECTS)" /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/pgit.sh /opt/ytools/bin/pgit.sh) pgit.sh-not-found)
|
MOD_SCRIPT_DIR = ./ytools/devutil/scripts
|
||||||
BUILD_PY = python ./ytools/devutil/scripts/build.py -b $(shell pwd) $(BUILD_PY_EXTRA_ARGS)
|
PGIT = CLONE_PROJECTS="$(PROJECTS)" /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/pgit.sh /opt/ytools/bin/pgit.sh) pgit.sh-not-found)
|
||||||
PURGE_SH = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/purge-stale-projects.sh /opt/ytools/bin/purge-stale-projects.sh) purge-not-found)
|
BUILD_PY = python $(MOD_SCRIPT_DIR)/build.py -b $(shell pwd) $(BUILD_PY_EXTRA_ARGS)
|
||||||
RELEASE_SH = /bin/bash $(firstword $(wildcard ./ytools/devutil/scripts/build-release.sh /opt/ytools/bin/build-release.sh) release-not-found)
|
PURGE_SH = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/purge-stale-projects.sh /opt/ytools/bin/purge-stale-projects.sh) purge-not-found)
|
||||||
BROWSER ?= firefox
|
RELEASE_SH = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/build-release.sh /opt/ytools/bin/build-release.sh) release-not-found)
|
||||||
|
BROWSER ?= firefox
|
||||||
|
|
||||||
# ------------ targets
|
# ------------ targets
|
||||||
|
|
||||||
all: pull.done
|
all: pull.done
|
||||||
|
|
||||||
all clean: pull.done
|
all clean: pull.done
|
||||||
$(BUILD_PY) $@ $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
|
$(BUILD_PY) $@ $(BUILD_PROJECTS)
|
||||||
|
|
||||||
pkg-%: pull.done
|
pkg-%: pull.done
|
||||||
$(BUILD_PY) $@ $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
|
$(BUILD_PY) $@ $(BUILD_PROJECTS)
|
||||||
|
|
||||||
|
echo-required-pkg:
|
||||||
|
@make pull.done >/dev/null 2>&1
|
||||||
|
@python $(MOD_SCRIPT_DIR)/projects.py required-pkg $(BUILD_PROJECTS)
|
||||||
|
|
||||||
clean: done.clean
|
clean: done.clean
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue