From 06701b126bc704823e5bc4edd0cff578f6229765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 19 Oct 2015 16:38:31 +0200 Subject: [PATCH] Make COPY_template compatible with gmake 3.8 --- Makefile.in | 5 ++--- 1 file 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))))