From 04f52231509dd0f3a57d745918fc43fff7c595ff Mon Sep 17 00:00:00 2001 From: minchao Date: Fri, 12 Apr 2019 17:26:36 +0800 Subject: [PATCH] Remove duplicate code in Makefile (#99) Signed-off-by: minchao --- Makefile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 31a8145a3..3198bff27 100644 --- a/Makefile +++ b/Makefile @@ -32,16 +32,6 @@ sdk: rm -rf ./sdk/php/swagger/test rm -rf ./vendor -install-stable: - KETO_LATEST=$$(git describe --abbrev=0 --tags) - git checkout $$KETO_LATEST - $(go env GOPATH)/bin/packr - GO111MODULE=on go install \ - -ldflags "-X github.com/ory/keto/cmd.Version=$$KETO_LATEST -X github.com/ory/keto/cmd.BuildTime=`TZ=UTC date -u '+%Y-%m-%dT%H:%M:%SZ'` -X github.com/ory/keto/cmd.GitHash=`git rev-parse HEAD`" \ - . - $(go env GOPATH)/bin/packr clean - git checkout master - .PHONY: install-stable install-stable: KETO_LATEST=$$(git describe --abbrev=0 --tags) @@ -57,4 +47,4 @@ install-stable: install: $(go env GOPATH)/bin/packr GO111MODULE=on go install . - $(go env GOPATH)/bin/packr clean \ No newline at end of file + $(go env GOPATH)/bin/packr clean