converge/Makefile

44 lines
616 B
Makefile

.DEFAULT_GOAL := all
# seems superfluous
#.PHONY: fmt vet build clean
fmt:
go fmt ./...
generate:
templ generate
vet: fmt
go vet ./...
test: build
go test -count=1 ${TESTFLAGS} ./...
build: generate vet
mkdir -p bin
go build -o bin ./cmd/...
buildwin:
mkdir -p bin
GOOS=windows GOARCH=amd64 go build -o bin ./cmd/...
clean:
rm -rf bin
rm -rf static/icons
static/icons/.downloaded:
./getbootstrapicons.sh
touch static/icons/.downloaded
icons: static/icons/.downloaded
all: icons build buildwin
images:
docker compose --profile build build
push: images
docker compose --profile build push