mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Make COPY_template compatible with gmake 3.8
This commit is contained in:
parent
ff4a00b1f3
commit
06701b126b
@ -123,9 +123,8 @@ DEPS_DIRS:=$(sort deps/ $(wildcard deps/*) $(dir $(DEPS_FILES)))
|
||||
MAIN_FILES:=$(filter-out %/configure.beam,$(call FILES_WILDCARD,ebin/*.beam ebin/*.app priv/msgs/*.msg priv/lib/* include/*.hrl))
|
||||
MAIN_DIRS:=$(sort $(dir $(MAIN_FILES)))
|
||||
|
||||
define COPY_template =
|
||||
$(call TO_DEST,$(1)): $(1) $(call TO_DEST,$(dir $(1)))
|
||||
$(INSTALL) -m 644 $(1) $(call TO_DEST,$(1))
|
||||
define COPY_template
|
||||
$(call TO_DEST,$(1)): $(1) $(call TO_DEST,$(dir $(1))) ; $$(INSTALL) -m 644 $(1) $(call TO_DEST,$(1))
|
||||
endef
|
||||
|
||||
$(foreach file,$(DEPS_FILES_FILTERED) $(MAIN_FILES),$(eval $(call COPY_template,$(file))))
|
||||
|
Loading…
Reference in New Issue
Block a user