diff options
author | Keith Winstein <keithw@cs.stanford.edu> | 2022-07-11 15:37:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 22:37:40 +0000 |
commit | 4132e35b51849678ac9e5592089e00057f260ccf (patch) | |
tree | 97b6021a35874629bf6701e34e29474af04ec48d /Makefile | |
parent | 2106ff48b285f28581c2598222d61636f3469a1c (diff) | |
download | wabt-4132e35b51849678ac9e5592089e00057f260ccf.tar.gz wabt-4132e35b51849678ac9e5592089e00057f260ccf.tar.bz2 wabt-4132e35b51849678ac9e5592089e00057f260ccf.zip |
wasm2c: simplify handling of templated code (#1940)
Store templated wasm2c code as .h/.c; build templates on demand
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 |