mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
tmpl.mk: Re-add because it's useful
Templates (i.e. text files ending as .tmpl) are not part of jw-pkg anylonger, but controlling the way they are installed is beneficial to other packages, so add tmpl.mk back. That said, the variable names will need some tweaking to avoid collisions. Postponed. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
b350a8f3f0
commit
ca5910d423
1 changed files with 22 additions and 0 deletions
22
make/tmpl.mk
Normal file
22
make/tmpl.mk
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
include $(JWBDIR)/make/defs.mk
|
||||||
|
|
||||||
|
# -- TMPL
|
||||||
|
INSTALLATION_FILE_TYPES += TMPL
|
||||||
|
BUILD_TMPLDIR = $(TOPDIR)/tmpl
|
||||||
|
LOCAL_TMPL += $(filter-out $(DONT_INSTALL),$(wildcard *.tmpl))
|
||||||
|
ifndef TMPL_SUBDIR
|
||||||
|
TMPL_SUBDIR := $(shell $(PWD) | $(SED) '/.*\/tmpl\(\/\|$$\)/!d; s%.*/tmpl\(/\|$$\)%%')
|
||||||
|
endif
|
||||||
|
ifeq ($(TMPL_SUBDIR),)
|
||||||
|
INSTALL_TMPLDIR = $(PROJECT_TMPLDIR)
|
||||||
|
else
|
||||||
|
INSTALL_TMPLDIR = $(PROJECT_TMPLDIR)/$(TMPL_SUBDIR)
|
||||||
|
endif
|
||||||
|
INSTALLED_TMPL += $(addprefix $(INSTALL_TMPLDIR)/,$(LOCAL_TMPL))
|
||||||
|
|
||||||
|
include $(JWBDIR)/make/rules.mk
|
||||||
|
|
||||||
|
all:
|
||||||
|
install: install_TMPL
|
||||||
|
clean: textclean localclean doneclean
|
||||||
|
test:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue