Added makefile
This commit is contained in:
parent
873b384bc6
commit
08da31f2e7
1 changed files with 20 additions and 0 deletions
20
GNUmakefile
Normal file
20
GNUmakefile
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue