Skip to content

Commit

Permalink
Remove duplicate code in Makefile (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: minchao <[email protected]>
  • Loading branch information
minchao authored and aeneasr committed Apr 12, 2019
1 parent 63b3946 commit 04f5223
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -57,4 +47,4 @@ install-stable:
install:
$(go env GOPATH)/bin/packr
GO111MODULE=on go install .
$(go env GOPATH)/bin/packr clean
$(go env GOPATH)/bin/packr clean

0 comments on commit 04f5223

Please sign in to comment.