From: Clifford Wolf Date: Sat, 7 Feb 2015 23:01:31 +0000 (+0100) Subject: Cleanup in add_share_file make macro X-Git-Tag: yosys-0.5~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0da320f151a343fc89f1fc94689f5921ed8fe4ea;p=yosys.git Cleanup in add_share_file make macro --- diff --git a/Makefile b/Makefile index 8a2b6cdce..fcd166a1c 100644 --- a/Makefile +++ b/Makefile @@ -159,10 +159,10 @@ CXXFLAGS += -DYOSYS_ENABLE_COVER endif define add_share_file -EXTRA_TARGETS += $(1)/$(notdir $(2)) -$(1)/$(notdir $(2)): $(2) +EXTRA_TARGETS += $(subst //,/,$(1)/$(notdir $(2))) +$(subst //,/,$(1)/$(notdir $(2))): $(2) $$(P) mkdir -p $(1) - $$(Q) cp $(2) $(1)/$(notdir $(2)) + $$(Q) cp $(2) $(subst //,/,$(1)/$(notdir $(2))) endef define add_include_file