From 9be761b53d4ce93b592a0f55d5decf538b048c9a Mon Sep 17 00:00:00 2001 From: Dennis Date: Tue, 2 Nov 2021 23:20:35 -0700 Subject: [PATCH] Update example's Makefile to always rebuild if srdl2sv updates --- examples/enums/Makefile | 4 ++-- examples/hierarchical_regfiles/Makefile | 4 ++-- examples/interrupt_hierarchy/Makefile | 4 ++-- examples/simple_rw_reg/Makefile | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/enums/Makefile b/examples/enums/Makefile index 4fe6835..cd5563d 100644 --- a/examples/enums/Makefile +++ b/examples/enums/Makefile @@ -4,8 +4,8 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl)) default: $(RTL_TARGETS) -srdl2sv_out/%.sv: %.rdl - srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO +srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) + srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO clean: rm -rf srdl2sv_out diff --git a/examples/hierarchical_regfiles/Makefile b/examples/hierarchical_regfiles/Makefile index 4fe6835..cd5563d 100644 --- a/examples/hierarchical_regfiles/Makefile +++ b/examples/hierarchical_regfiles/Makefile @@ -4,8 +4,8 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl)) default: $(RTL_TARGETS) -srdl2sv_out/%.sv: %.rdl - srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO +srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) + srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO clean: rm -rf srdl2sv_out diff --git a/examples/interrupt_hierarchy/Makefile b/examples/interrupt_hierarchy/Makefile index 4fe6835..cd5563d 100644 --- a/examples/interrupt_hierarchy/Makefile +++ b/examples/interrupt_hierarchy/Makefile @@ -4,8 +4,8 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl)) default: $(RTL_TARGETS) -srdl2sv_out/%.sv: %.rdl - srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO +srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) + srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO clean: rm -rf srdl2sv_out diff --git a/examples/simple_rw_reg/Makefile b/examples/simple_rw_reg/Makefile index 4fe6835..cd5563d 100644 --- a/examples/simple_rw_reg/Makefile +++ b/examples/simple_rw_reg/Makefile @@ -4,8 +4,8 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl)) default: $(RTL_TARGETS) -srdl2sv_out/%.sv: %.rdl - srdl2sv $? --out-dir $(shell dirname $@) --stdout-logging INFO +srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) + srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO clean: rm -rf srdl2sv_out