phasm/Makefile
2021-04-05 10:41:26 +02:00

23 lines
364 B
Makefile

%.wat: %.py py2wasm/*.py
python3.8 -m py2wasm $< $@
%.wasm: %.wat
wat2wasm $^ -o $@
server:
python3.8 -m http.server
test: venv/.done
venv/bin/pytest tests
lint: venv/.done
venv/bin/pylint py2wasm
typecheck: venv/.done
venv/bin/mypy --strict py2wasm
venv/.done: requirements.txt
python3.8 -m venv venv
venv/bin/python3 -m pip install -r $^
touch $@