godoor/Makefile

17 lines
475 B
Makefile
Raw Normal View History

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