Commit 995d7a78 by Eddie Hung

Makefile to use patterns

parent efa1a513
...@@ -15,12 +15,8 @@ $(1)/.stamp_falsify: $(1)/.stamp_sim ...@@ -15,12 +15,8 @@ $(1)/.stamp_falsify: $(1)/.stamp_sim
bash run.sh $(1) falsify bash run.sh $(1) falsify
touch $$@ touch $$@
$(1)/.stamp_cmos: $(1)/.stamp_sim $(1)/.stamp_%: $(1)/.stamp_sim
bash run.sh $(1) cmos bash run.sh $(1) $$*
touch $$@
$(1)/.stamp_ice40: $(1)/.stamp_sim
bash run.sh $(1) ice40
touch $$@ touch $$@
clean:: clean::
...@@ -28,6 +24,6 @@ clean:: ...@@ -28,6 +24,6 @@ clean::
rm -f $(1)_cmos.status $(1)_ice40.status $(1)_falsify.status rm -f $(1)_cmos.status $(1)_ice40.status $(1)_falsify.status
endef endef
$(eval $(call template,navre,cmos ice40)) $(eval $(call template,navre,cmos ice40 ice40_abc9))
.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