From 547d4703029a732bb11911ce4941be1cff50214e Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 8 Oct 2024 16:11:14 -0700 Subject: [PATCH] [chore] fix make otelcontribcol, require genotelcontribcol (#35707) Fixes #35631 No changelog since this does not affect anyone outside this repo. Signed-off-by: Bogdan Drutu --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) .