.PHONY: build css go-build local seed test clean

build: css go-build

css: node_modules
	npm run build:css

node_modules: package.json package-lock.json
	npm install
	@touch node_modules

go-build:
	go build -tags goolm -o pete .

local: build
	./pete -local

seed: build
	./pete -seed

test:
	go test ./...

clean:
	rm -f pete internal/web/static/css/output.css
