accounting/Makefile
2024-01-18 18:53:42 +01:00

21 lines
380 B
Makefile

PORT := 5000
default: build
build: export CGO_ENABLED=0
build: frontend
go build \
-ldflags "-s -w -X main.version=$(shell git describe --tags --always || echo dev)" \
-mod=readonly \
-trimpath
.PHONY: frontend
frontend: node_modules
git clean -fdx pkg/frontend/assets/
node ci/build.mjs
node_modules:
npm ci --include=dev
run: frontend
go run . --listen=:$(PORT)