mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
subtree.mk: Add multiple-inclusion guards
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
084d61df75
commit
770a42cc76
1 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ SUBTREE_FILES += $(shell for f in `git ls-files . 2>/dev/null || f
|
|||
INSTALLED_SUBTREE_DIRS = $(addprefix $(ENV_PREFIX)$(SUBTREE_INSTALL_PREFIX)/,$(SUBTREE_DIRS))
|
||||
INSTALLED_SUBTREE_FILES = $(addprefix $(ENV_PREFIX)$(SUBTREE_INSTALL_PREFIX)/,$(SUBTREE_FILES))
|
||||
|
||||
ifndef SUBTREE_MK_INCLUDED
|
||||
SUBTREE_MK_INCLUDED = true
|
||||
|
||||
include $(JWBDIR)/make/defs.mk
|
||||
|
||||
all:
|
||||
|
|
@ -37,3 +40,5 @@ $(INSTALLED_SUBTREE_DIRS):
|
|||
|
||||
$(ENV_PREFIX)$(SUBTREE_INSTALL_PREFIX)/%: % | $(INSTALLED_SUBTREE_DIRS)
|
||||
$(INSTALL) -p -o $(SUBTREE_OWNER) -g $(SUBTREE_GROUP) -m $(SUBTREE_MODE) $< $@
|
||||
|
||||
endif # SUBTREE_MK_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue