diff --git a/Makefile b/Makefile index 63b86e4..828114e 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ +Makefile ARCHS := linux-amd64 linux-arm64 darwin-amd64 VERSION ?= $(shell git describe --tags --always) all: $(ARCHS) $(ARCHS): @echo "Building for $(@)" - @GOOS=$(word 1,$(subst -, ,$(@))) GOARCH=$(word 2,$(subst -, ,$(@))) \ + @GOOS=$(word 1,$(subst -, ,$(@))) GOARCH=$(word 2,$(subst -, ,$(@))) CGO_ENABLED=0 \ go build -ldflags "-X main.Version=$(VERSION)" -o target/$(@)/gohttpd cp config.json target/$(@)/ cp -r adminui target/$(@)/