mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
projects-dir.mk: Add support for exclude-<os-suffix>.txt
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
59d3414550
commit
e09a91418d
1 changed files with 13 additions and 6 deletions
|
|
@ -41,10 +41,16 @@ EXCLUDE_FROM_BUILD += \
|
|||
jux3 \
|
||||
emscren-v8
|
||||
|
||||
EXCLUDES_FILE ?= exclude.txt
|
||||
# ------------ external programs I
|
||||
|
||||
ifneq ($(wildcard $(EXCLUDES_FILE)),)
|
||||
EXCLUDE_FROM_BUILD += $(shell cat $(EXCLUDES_FILE))
|
||||
MOD_SCRIPT_DIR = ./jw-build/scripts
|
||||
GET_OS_SH = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/get-os.sh /opt/jw-build/bin/get-os.sh) get-os-sh-not-found)
|
||||
|
||||
EXCLUDES_FILE ?= exclude.txt
|
||||
EXCLUDES_FILES = exclude-$(shell $(GET_OS_SH) name).txt exclude-$(shell $(GET_OS_SH)).txt $(EXCLUDES_FILE)
|
||||
|
||||
ifneq ($(wildcard $(EXCLUDES_FILES)),)
|
||||
EXCLUDE_FROM_BUILD += $(shell sed 's/\#.*//g' $(wildcard $(EXCLUDES_FILES)))
|
||||
endif
|
||||
|
||||
BUILD_PROJECTS = $(filter-out $(EXCLUDE_FROM_BUILD),$(PROJECTS))
|
||||
|
|
@ -81,9 +87,8 @@ ifneq ($(EXCLUDE_FROM_BUILD),)
|
|||
BUILD_PY_EXTRA_ARGS += --exclude "$(EXCLUDE_FROM_BUILD)"
|
||||
endif
|
||||
|
||||
# ------------ external programs
|
||||
# ------------ external programs II
|
||||
|
||||
MOD_SCRIPT_DIR = ./jw-build/scripts
|
||||
PGIT = CLONE_PROJECTS="$(PROJECTS)" /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/pgit.sh /opt/jw-build/bin/pgit.sh) pgit.sh-not-found)
|
||||
BUILD_PY = python2 $(MOD_SCRIPT_DIR)/build.py -b $(shell pwd) $(BUILD_PY_EXTRA_ARGS)
|
||||
PROJECTS_PY = python2 $(MOD_SCRIPT_DIR)/projects.py --prefix $(shell pwd) $(PROJECTS_PY_EXTRA_ARGS)
|
||||
|
|
@ -93,7 +98,6 @@ PKG_MANAGER_SH ?= /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/pkg-m
|
|||
CREATE_PROJECT_SH ?= /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/jw-build-create-project.sh /opt/jw-build/bin/jw-build-create-project.sh) jw-build-create-project-not-found)
|
||||
LIST_VCS_FILES = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/list-cvs-files.sh /opt/jw-build/bin/list-cvs-files.sh) list-cvs-files-not-found)
|
||||
JANWARE_PKG = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/jannet /opt/jw-build/bin/jannet) jannet-not-found)
|
||||
GET_OS_SH = /bin/bash $(firstword $(wildcard $(MOD_SCRIPT_DIR)/get-os.sh /opt/jw-build/bin/get-os.sh) get-os-sh-not-found)
|
||||
BROWSER ?= firefox
|
||||
GIT_SRV_ADMIN_SH = JW_BUILD_SSH_EXTRA_OPTS="$(JW_BUILD_SSH_EXTRA_OPTS)" $(GIT_SSH) $(JANWARE_USER)@git.jannet.de /opt/jw-build/bin/git-srv-admin.sh
|
||||
CVS_ADMIN_SH = JW_BUILD_SSH_EXTRA_OPTS="$(JW_BUILD_SSH_EXTRA_OPTS)" $(GIT_SSH) $(JANWARE_USER)@git.jannet.de /opt/jw-build/bin/cvs-admin.sh
|
||||
|
|
@ -129,6 +133,9 @@ echo-prereq-release:
|
|||
echo-os:
|
||||
@$(GET_OS_SH)
|
||||
|
||||
echo-excludes:
|
||||
@echo $(EXCLUDE_FROM_BUILD)
|
||||
|
||||
pkg-manager-refresh:
|
||||
$(PKG_MANAGER_SH) refresh -y
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue