Skip to content

Commit

Permalink
Use cd directly
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay committed Mar 19, 2020
1 parent 342002f commit 2a7ed3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,13 @@ else
$(GOBUILD) -o ./cmd/collector/collector-$(GOOS) $(BUILD_INFO) ./cmd/collector/main.go
endif

.ONESHELL:
OTEL_COLLECTOR_DIR = ./cmd/opentelemetry-collector
.PHONY: build-otel-collector
build-otel-collector:
cd ./cmd/opentelemetry-collector
ifeq ($(GOARCH), s390x)
$(GOBUILD) -o ./opentelemetry-collector-$(GOOS)-$(GOARCH) $(BUILD_INFO) main.go
cd ${OTEL_COLLECTOR_DI} && $(GOBUILD) -o ./opentelemetry-collector-$(GOOS)-$(GOARCH) $(BUILD_INFO) main.go
else
$(GOBUILD) -o ./opentelemetry-collector-$(GOOS) $(BUILD_INFO) main.go
cd ${OTEL_COLLECTOR_DIR} && $(GOBUILD) -o ./opentelemetry-collector-$(GOOS) $(BUILD_INFO) main.go
endif

.PHONY: build-ingester
Expand Down

0 comments on commit 2a7ed3d

Please sign in to comment.