aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: aa000bcc2f13a5500a87847c61161da8f58c9811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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