Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2015-10-19 17:38:31 +0300
committerPaweł Chmielowski <pchmielowski@process-one.net>2015-10-19 17:39:08 +0300
commit06701b126bc704823e5bc4edd0cff578f6229765 (patch)
tree4a47f121d593ac5d969371261252d6a62eb7cbac /Makefile.in
parentff4a00b1f3ccf573e2038197444e5f587524f02e (diff)
Make COPY_template compatible with gmake 3.8
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 57f355cb1..391d81612 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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))))