move tools to scripts

This commit is contained in:
Remko Tronçon 2022-04-15 15:33:50 +02:00
parent c64957e41e
commit 7e2cf5dad5
5 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ check: src/waforth.wasm
check-watch: src/waforth.wasm
yarn -s test-watch
wasm: src/waforth.assembled.wat src/tools/quadruple.wasm.hex
wasm: src/waforth.assembled.wat scripts/quadruple.wasm.hex
process: src/waforth.vanilla.wat
cp $< src/waforth.wat
@ -26,25 +26,25 @@ src/waforth.wasm: src/waforth.wat
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
src/waforth.vanilla.wat: src/waforth.wat
./src/tools/process.js $< $@
./scripts/process.js $< $@
src/waforth.bulkmem.wasm: src/waforth.bulkmem.wat
$(WAT2WASM) $(WAT2WASM_FLAGS) --enable-bulk-memory -o $@ $<
src/waforth.bulkmem.wat: src/waforth.wat
./src/tools/process.js --enable-bulk-memory $< $@
./scripts/process.js --enable-bulk-memory $< $@
src/benchmarks/sieve-vanilla.wasm: src/benchmarks/sieve-vanilla.wat
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
src/tools/quadruple.wasm: src/tools/quadruple.wat
scripts/quadruple.wasm: scripts/quadruple.wat
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
src/tools/quadruple.wasm.hex: src/tools/quadruple.wasm
scripts/quadruple.wasm.hex: scripts/quadruple.wasm
hexdump -v -e '16/1 "_u%04X" "\n"' $< | sed 's/_/\\/g; s/\\u //g; s/.*/ "&"/' > $@
clean:
-rm -rf $(WASM_FILES) src/tools/quadruple.wasm src/tools/quadruple.wasm.hex src/waforth.wat.tmp dist
-rm -rf $(WASM_FILES) scripts/quadruple.wasm scripts/quadruple.wasm.hex src/waforth.wat.tmp dist
lint:
yarn -s lint

View file

@ -1,6 +1,6 @@
#!/usr/bin/env node
// Usage: ./src/tools/generate-dictionary-entry.js "\$foo" FOO 0 0x21820 0x2182c 0xa1
// Usage: ./scripts/generate-dictionary-entry.js "\$foo" FOO 0 0x21820 0x2182c 0xa1
const _ = require("lodash");
const process = require("process");