all repos — weimar @ 8d72190a752e3e1eaff992da40d75e01c6149993

Unnamed repository; edit this file 'description' to name the repository.

Makefile (view raw)

 1BIN := weimar
 2LDFLAGS := -ldflags="-s -w -X main.Version=$(VERSION) -X main.BuildDate=$(shell date -u +%Y-%m-%d)"
 3
 4VERSION ?= dev
 5
 6.PHONY: all build clean test lint web-build web-dev
 7
 8all: web-build build
 9
10build: web-embed
11	go build -o bin/$(BIN) $(LDFLAGS) ./cmd/weimar
12
13clean:
14	rm -rf bin/ dist/ web/build/ web/.svelte-kit/ cmd/weimar/web/build/
15
16test:
17	go test ./... -count=1
18
19lint:
20	golangci-lint run ./...
21
22web-build:
23	cd web && bun run build
24
25web-embed: web-build
26	rm -rf cmd/weimar/web/build
27	cp -r web/build cmd/weimar/web/build
28
29web-dev:
30	cd web && bun run dev