17 lines
484 B
Makefile
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'
|