%.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 $@