From 08da31f2e79f87a93281afe8f13eaa700d57708a Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 18 Oct 2022 22:16:17 +0200 Subject: Added makefile --- GNUmakefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 GNUmakefile diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..aa000bc --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,20 @@ +SHELL:=bash + +.PHONY: build +build: ## make build # Builds a cartridge + zig build + +.PHONY: help +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' + +.PHONY: init +init: ## make init # initialize project dependencies + npm install wasm4 + rm package.json package-lock.json # w4 will think it is an AssemblyScript game if we leave these files + +.PHONY: serve +serve: ## make serve # run a nodejs web server + node_modules/.bin/w4 watch --no-open --no-qr + +.DEFAULT_GOAL := help -- cgit v1.2.3