From 63098fe9fe3cf8680669680282382ca220250f6e Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 9 Sep 2020 13:50:19 +0200 Subject: [PATCH] Fix building the example app Signed-off-by: Mark Sagi-Kazar --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f9c0e324..abf8655d 100644 --- a/Makefile +++ b/Makefile @@ -20,13 +20,21 @@ LD_FLAGS="-w -X $(REPO_PATH)/version.Version=$(VERSION)" # Dependency versions GOLANGCI_VERSION = 1.21.0 -build: bin/dex bin/grpc-client +build: bin/dex bin/dex: + @mkdir -p bin/ @go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex +examples: bin/grpc-client bin/example-app + bin/grpc-client: - @go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/examples/grpc-client + @mkdir -p bin/ + @cd examples/ && go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/examples/grpc-client + +bin/example-app: + @mkdir -p bin/ + @cd examples/ && go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/examples/example-app .PHONY: release-binary release-binary: