remote-i3wm-go/Makefile
Simon Vieille a3ee86f81b
add config
2023-08-25 11:19:54 +02:00

23 lines
497 B
Makefile

CGO_ENABLED = 0
CC = go build
CFLAGS = -trimpath
LDFLAGS = all=-w -s
GCFLAGS = all=
ASMFLAGS = all=
BUILD_DIR = build
LINUX_BIN = app-latest-linux-amd64
all: build
deps:
go install github.com/GeertJohan/go.rice/rice@latest
rice embed-go
.PHONY:
build: deps
CGO_ENABLED=$(CGO_ENABLED) GOARCH=amd64 GOOS=linux $(CC) $(CFLAGS) -o $(BUILD_DIR)/$(LINUX_BIN) -ldflags="$(LDFLAGS)" -gcflags="$(GCFLAGS)" -asmflags="$(ASMFLAGS)"
watch:
gowatch -o build/app-live-linux-amd64 -args='./config.yaml'