Commit e46bb7ff by Clifford Wolf

Add foreach blocks to simple/Makefile

Signed-off-by: Clifford Wolf <clifford@clifford.at>
parent 0ef8f454
...@@ -5,16 +5,18 @@ clean:: ...@@ -5,16 +5,18 @@ clean::
rm -f .stamp rm -f .stamp
define template define template
work:: $(1)/work_$(2)/.stamp $(foreach design,$(1),
$(foreach script,$(2),
work:: $(design)/work_$(script)/.stamp
$(1)/work_$(2)/.stamp: $(design)/work_$(script)/.stamp:
bash run.sh $(1) $(2) bash run.sh $(design) $(script)
clean:: clean::
rm -rf $(1)/work_$(2) rm -rf $(design)/work_$(script)
))
endef endef
$(eval $(call template,alu,gates)) $(eval $(call template,alu,gates luts))
$(eval $(call template,alu,luts))
.PHONY: all clean .PHONY: all clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment