From aedcfd6fd3ea99d9d418b81d376590bdb00c2c5c Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 16 Aug 2015 21:15:07 +0200 Subject: Fixed Makefile rules for generated share files --- techlibs/ice40/Makefile.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'techlibs/ice40') diff --git a/techlibs/ice40/Makefile.inc b/techlibs/ice40/Makefile.inc index 6907f0a0..d7fec568 100644 --- a/techlibs/ice40/Makefile.inc +++ b/techlibs/ice40/Makefile.inc @@ -11,7 +11,8 @@ EXTRA_OBJS += techlibs/ice40/brams_init.mk .SECONDARY: techlibs/ice40/brams_init.mk techlibs/ice40/brams_init.mk: techlibs/ice40/brams_init.py - $(P) cd share/ice40 && python $< + $(Q) mkdir -p techlibs/ice40 + $(P) cd techlibs/ice40 && python $< $(Q) touch techlibs/ice40/brams_init.mk techlibs/ice40/brams_init1.vh: techlibs/ice40/brams_init.mk @@ -24,3 +25,7 @@ $(eval $(call add_share_file,share/ice40,techlibs/ice40/cells_sim.v)) $(eval $(call add_share_file,share/ice40,techlibs/ice40/brams.txt)) $(eval $(call add_share_file,share/ice40,techlibs/ice40/brams_map.v)) +$(eval $(call add_gen_share_file,share/ice40,techlibs/ice40/brams_init1.vh)) +$(eval $(call add_gen_share_file,share/ice40,techlibs/ice40/brams_init2.vh)) +$(eval $(call add_gen_share_file,share/ice40,techlibs/ice40/brams_init3.vh)) + -- cgit v1.2.3