From aedcfd6fd3ea99d9d418b81d376590bdb00c2c5c Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 16 Aug 2015 21:15:07 +0200 Subject: Fixed Makefile rules for generated share files --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 30087380..0aff340b 100644 --- a/Makefile +++ b/Makefile @@ -195,6 +195,13 @@ $(subst //,/,$(1)/$(notdir $(2))): $(2) $$(Q) cp "$(YOSYS_SRC)"/$(2) $(subst //,/,$(1)/$(notdir $(2))) endef +define add_gen_share_file +EXTRA_TARGETS += $(subst //,/,$(1)/$(notdir $(2))) +$(subst //,/,$(1)/$(notdir $(2))): $(2) + $$(P) mkdir -p $(1) + $$(Q) cp $(2) $(subst //,/,$(1)/$(notdir $(2))) +endef + define add_include_file $(eval $(call add_share_file,$(dir share/include/$(1)),$(1))) endef -- cgit v1.2.3