mirror of
https://github.com/remko/waforth
synced 2024-12-28 10:00:06 +01:00
move tools to scripts
This commit is contained in:
parent
c64957e41e
commit
7e2cf5dad5
5 changed files with 7 additions and 7 deletions
12
Makefile
12
Makefile
|
@ -17,7 +17,7 @@ check: src/waforth.wasm
|
||||||
check-watch: src/waforth.wasm
|
check-watch: src/waforth.wasm
|
||||||
yarn -s test-watch
|
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
|
process: src/waforth.vanilla.wat
|
||||||
cp $< src/waforth.wat
|
cp $< src/waforth.wat
|
||||||
|
@ -26,25 +26,25 @@ src/waforth.wasm: src/waforth.wat
|
||||||
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
|
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
|
||||||
|
|
||||||
src/waforth.vanilla.wat: src/waforth.wat
|
src/waforth.vanilla.wat: src/waforth.wat
|
||||||
./src/tools/process.js $< $@
|
./scripts/process.js $< $@
|
||||||
|
|
||||||
src/waforth.bulkmem.wasm: src/waforth.bulkmem.wat
|
src/waforth.bulkmem.wasm: src/waforth.bulkmem.wat
|
||||||
$(WAT2WASM) $(WAT2WASM_FLAGS) --enable-bulk-memory -o $@ $<
|
$(WAT2WASM) $(WAT2WASM_FLAGS) --enable-bulk-memory -o $@ $<
|
||||||
|
|
||||||
src/waforth.bulkmem.wat: src/waforth.wat
|
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
|
src/benchmarks/sieve-vanilla.wasm: src/benchmarks/sieve-vanilla.wat
|
||||||
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
|
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
|
||||||
|
|
||||||
src/tools/quadruple.wasm: src/tools/quadruple.wat
|
scripts/quadruple.wasm: scripts/quadruple.wat
|
||||||
$(WAT2WASM) $(WAT2WASM_FLAGS) -o $@ $<
|
$(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/.*/ "&"/' > $@
|
hexdump -v -e '16/1 "_u%04X" "\n"' $< | sed 's/_/\\/g; s/\\u //g; s/.*/ "&"/' > $@
|
||||||
|
|
||||||
clean:
|
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:
|
lint:
|
||||||
yarn -s lint
|
yarn -s lint
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/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 _ = require("lodash");
|
||||||
const process = require("process");
|
const process = require("process");
|
Loading…
Reference in a new issue