mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Fixed Makefile rules for generated share files
This commit is contained in:
parent
d5b1a90b33
commit
aedcfd6fd3
3 changed files with 20 additions and 2 deletions
7
Makefile
7
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue