From 4132e35b51849678ac9e5592089e00057f260ccf Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 11 Jul 2022 15:37:40 -0700 Subject: wasm2c: simplify handling of templated code (#1940) Store templated wasm2c code as .h/.c; build templates on demand --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7915598b..78d1ef4c 100644 --- a/Makefile +++ b/Makefile @@ -144,16 +144,10 @@ update-gperf: src/prebuilt/lexer-keywords.cc src/prebuilt/lexer-keywords.cc: src/lexer-keywords.txt gperf -m 50 -L C++ -N InWordSet -E -t -c --output-file=$@ $< -.PHONY: update-wasm2c -update-wasm2c: src/prebuilt/wasm2c.include.c src/prebuilt/wasm2c.include.h +.PHONY: update-wasm2c-fac +update-wasm2c-fac: make -C wasm2c/examples/fac -src/prebuilt/wasm2c.include.c: src/wasm2c.c.tmpl - src/wasm2c_tmpl.py -o $@ $< - -src/prebuilt/wasm2c.include.h: src/wasm2c.h.tmpl - src/wasm2c_tmpl.py -o $@ $< - .PHONY: demo demo: emscripten-release cp out/emscripten/Release/libwabt.js docs/demo -- cgit v1.2.3