From cbc2686373a5fe81b6b28f845edc323d4cae56e5 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Tue, 8 Sep 2020 17:27:48 +0200 Subject: modernize the build (test) system --- Makefile.util | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile.util (limited to 'Makefile.util') diff --git a/Makefile.util b/Makefile.util new file mode 100644 index 0000000..7bdc584 --- /dev/null +++ b/Makefile.util @@ -0,0 +1,10 @@ +FILE_LINES = `grep -E '^[[:space:]]*[^[:space:]/]' -c $(1)` + +ifdef PROJ_DIR +vpath tclasm.tcl $(PROJ_DIR) +endif + +vpath tclasm.tcl . + +%.mem : tclasm.tcl %.s.tcl + tclsh $^ > $@ -- cgit v1.2.3