accounting/Makefile

20 lines
365 B
Makefile
Raw Normal View History

2024-01-16 15:13:04 +00:00
PORT := 5000
default: build
build: frontend
go build \
-ldflags "-X main.version=$(shell git describe --tags --always || echo dev)" \
-mod=readonly \
-trimpath
.PHONY: frontend
frontend: node_modules
node ci/build.mjs
node_modules:
vault2env --key secret/jenkins/fontawesome -- npm ci --include=dev
run: frontend
envrun -- go run . --listen=:$(PORT)