mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Added add_share_file Makefile macro
This commit is contained in:
parent
38dfc5c580
commit
1d96277f5d
3 changed files with 17 additions and 38 deletions
7
Makefile
7
Makefile
|
@ -143,6 +143,13 @@ ifeq ($(ENABLE_COVER),1)
|
|||
CXXFLAGS += -DYOSYS_ENABLE_COVER
|
||||
endif
|
||||
|
||||
define add_share_file
|
||||
EXTRA_TARGETS += $(1)/$(notdir $(2))
|
||||
$(1)/$(notdir $(2)): $(2)
|
||||
$$(P) mkdir -p $(1)
|
||||
$$(Q) cp $(2) $(1)/$(notdir $(2))
|
||||
endef
|
||||
|
||||
ifeq ($(PRETTY), 1)
|
||||
P_STATUS = 0
|
||||
P_OFFSET = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue