diff --git a/Makefile b/Makefile index 65ed10959e65..75591a0042b3 100644 --- a/Makefile +++ b/Makefile @@ -337,13 +337,13 @@ genotelcontribcol: $(BUILDER) # Build the Collector executable. .PHONY: otelcontribcol -otelcontribcol: +otelcontribcol: genotelcontribcol cd ./cmd/otelcontribcol && GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/otelcontribcol_$(GOOS)_$(GOARCH)$(EXTENSION) \ -tags $(GO_BUILD_TAGS) . # Build the Collector executable without the symbol table, debug information, and the DWARF symbol table. .PHONY: otelcontribcollite -otelcontribcollite: +otelcontribcollite: genotelcontribcol cd ./cmd/otelcontribcol && GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/otelcontribcol_$(GOOS)_$(GOARCH)$(EXTENSION) \ -tags $(GO_BUILD_TAGS) -ldflags $(GO_BUILD_LDFLAGS) . @@ -353,12 +353,12 @@ genoteltestbedcol: $(BUILDER) # Build the Collector executable, with only components used in testbed. .PHONY: oteltestbedcol -oteltestbedcol: +oteltestbedcol: genoteltestbedcol cd ./cmd/oteltestbedcol && GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/oteltestbedcol_$(GOOS)_$(GOARCH)$(EXTENSION) \ -tags $(GO_BUILD_TAGS) . .PHONY: oteltestbedcollite -oteltestbedcollite: +oteltestbedcollite: genoteltestbedcol cd ./cmd/oteltestbedcol && GO111MODULE=on CGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/oteltestbedcol_$(GOOS)_$(GOARCH)$(EXTENSION) \ -tags $(GO_BUILD_TAGS) -ldflags $(GO_BUILD_LDFLAGS) .