phasm/Makefile
Johan B.W. de Vries e972b37149 If statements \o/
2021-08-07 14:34:50 +02:00

23 lines
378 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 $(TEST_FLAGS)
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 $@