1
0
Fork 0
mirror of https://github.com/Luzifer/wiki.git synced 2024-11-09 15:20:07 +00:00
wiki/Makefile
Knut Ahlers 2ef54b4218
CI: Build app code on-demand
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-01-30 16:30:19 +01:00

18 lines
289 B
Makefile

VERSION := $(shell git describe --tags --always || echo dev)
default: build
build: frontend
go build \
-ldflags "-s -w -X main.version=$(version)" \
-mod=readonly \
-trimpath
frontend: node_modules
node ci/build.mjs
node_modules:
npm ci
publish: frontend
bash ./ci/build.sh