aboutsummaryrefslogtreecommitdiff
path: root/Makefile.util
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.util')
-rw-r--r--Makefile.util12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.util b/Makefile.util
index 7bdc584..02ad5a3 100644
--- a/Makefile.util
+++ b/Makefile.util
@@ -1,10 +1,10 @@
FILE_LINES = `grep -E '^[[:space:]]*[^[:space:]/]' -c $(1)`
-ifdef PROJ_DIR
-vpath tclasm.tcl $(PROJ_DIR)
-endif
+%.mem : $(PROJ_DIR)/tclasm.tcl %.s.tcl
+ tclsh $^ > $@
-vpath tclasm.tcl .
+%.mem : $(PROJ_DIR)/tools/wasm_compile %.wasm
+ $^ > $@
-%.mem : tclasm.tcl %.s.tcl
- tclsh $^ > $@
+%.wasm : %.wat
+ $(WAT2WASM) $< -o $@