quintodrome.quineglobal.com/Makefile

47 lines
826 B
Makefile
Raw Normal View History

2026-09-26 03:55:36 -08:00
# SITE selects which site under sites/ to build/run: quintodrome or hyper.
SITE ?= quintodrome
2026-05-25 21:40:39 -08:00
.PHONY: benchmark
benchmark:
go test -bench=.
2026-05-25 23:27:36 -08:00
.PHONY: build
build:
2026-09-26 03:55:36 -08:00
docker build --platform linux/amd64 --build-arg SITE=$(SITE) . -t forge.quinefoundation.com/ironmagma/$(SITE)-quineglobal-com
2026-05-25 21:40:39 -08:00
2026-05-25 23:27:36 -08:00
.PHONY: push
push: build
2026-09-26 03:55:36 -08:00
docker push forge.quinefoundation.com/ironmagma/$(SITE)-quineglobal-com
2026-05-25 21:40:39 -08:00
.PHONY: cover
cover:
go tool cover -html=cover.out
.PHONY: css
css:
npm run css
.PHONY: css-watch
css-watch:
npm run css:watch
.PHONY: dev
dev:
2026-09-26 03:55:36 -08:00
@trap 'kill 0' SIGINT SIGTERM; npm run css:watch & go run ./sites/$(SITE)/cmd; wait
2026-05-25 21:40:39 -08:00
.PHONY: install
install:
npm install
.PHONY: lint
lint:
golangci-lint run
.PHONY: start
start:
2026-09-26 03:55:36 -08:00
go run ./sites/$(SITE)/cmd
2026-05-25 21:40:39 -08:00
.PHONY: test
test:
go test -coverprofile=cover.out -shuffle on ./...