From 85dde0efc984a05b59b26255d66ffe7aaf6cbd10 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 4 Nov 2020 07:46:22 -0800 Subject: [PATCH] fixing paths --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 928d9a5..024b053 100644 --- a/Makefile +++ b/Makefile @@ -16,14 +16,14 @@ $(BINARY): OS = $(word 1,$(subst /, ,$*)) $(BINARY): ARCH = $(word 2,$(subst /, ,$*)) $(BINARY): build/scrutiny-web-%: @echo "building web binary (OS = $(OS), ARCH = $(ARCH))" - xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-web -tags "static netgo sqlite_omit_load_extension" ./webapp/backend/cmd/scrutiny/ + xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-web -tags "static netgo sqlite_omit_load_extension" webapp/backend/cmd/scrutiny/ chmod +x "/build/scrutiny-web-$(OS)-$(ARCH)" file "/build/scrutiny-web-$(OS)-$(ARCH)" || true ldd "/build/scrutiny-web-$(OS)-$(ARCH)" || true @echo "building collector binary (OS = $(OS), ARCH = $(ARCH))" - xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-collector-metrics -tags "static netgo" ./collector/cmd/collector-metrics/ + xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-collector-metrics -tags "static netgo" collector/cmd/collector-metrics/ chmod +x "/build/scrutiny-collector-metrics-$(OS)-$(ARCH)" file "/build/scrutiny-collector-metrics-$(OS)-$(ARCH)" || true @@ -33,10 +33,10 @@ windows/amd64: export OS = windows windows/amd64: export ARCH = amd64 windows/amd64: @echo "building web binary (OS = $(OS), ARCH = $(ARCH))" - xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-web -tags "static netgo sqlite_omit_load_extension" ./webapp/backend/cmd/scrutiny/ + xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-web -tags "static netgo sqlite_omit_load_extension" webapp/backend/cmd/scrutiny/ @echo "building collector binary (OS = $(OS), ARCH = $(ARCH))" - xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-collector-metrics -tags "static netgo" ./collector/cmd/collector-metrics/ + xgo -v --targets="$(OS)/$(ARCH)" -ldflags "-extldflags=-static -X main.goos=$(OS) -X main.goarch=$(ARCH)" -out scrutiny-collector-metrics -tags "static netgo" collector/cmd/collector-metrics/ freebsd/amd64: export GOOS = freebsd freebsd/amd64: export GOARCH = amd64