[yosys] 18/38: Cleanup in add_share_file make macro

Ruben Undheim rubund-guest at moszumanska.debian.org
Mon Feb 9 19:36:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to tag upstream/0.5.0
in repository yosys.

commit 0da320f151a343fc89f1fc94689f5921ed8fe4ea
Author: Clifford Wolf <clifford at clifford.at>
Date:   Sun Feb 8 00:01:31 2015 +0100

    Cleanup in add_share_file make macro
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 8a2b6cd..fcd166a 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/yosys.git



More information about the debian-science-commits mailing list