godoor/Makefile
Arti Zirk 92469f11b2
Some checks failed
continuous-integration/drone/push Build is failing
Do not error on git describe if tags are missing
2023-08-11 14:35:57 +03:00

17 lines
484 B
Makefile

.PHONY: all build build_arm64 dev
all: build
GOBUILDLDFLAGS="-X main.Version=`git describe --always --dirty`"
#GOBUILDLDFLAGS="-X main.Version=`git describe --dirty` -linkmode 'external' -extldflags '-static'"
build:
go build -tags netgo -ldflags=${GOBUILDLDFLAGS} .
build_arm64:
GOOS=linux GOARCH=arm64 go build -tags netgo -ldflags=${GOBUILDLDFLAGS} .
dev: build_arm64
scp godoor workshopdoor:/tmp/
ssh workshopdoor 'mv -f /tmp/godoor ~/ && sudo systemctl restart godoor'