Skip to content

Commit

Permalink
♻️ Refactoring Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
budougumi0617 committed Jul 28, 2018
1 parent 65d2fdd commit 9558f3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ REVISION := $(shell git rev-parse --short HEAD)

DIST_DIRS := find * -type d -exec

.PHONY: dep
dep:
.PHONY: pre-dep
pre-dep:
ifeq ($(shell command -v dep 2> /dev/null),)
go get -u github.com/golang/dep/cmd/dep
endif

.PHONY: deps
deps: dep
.PHONY: dep
dep: pre-dep
dep ensure

.PHONY: clean
Expand All @@ -26,14 +26,14 @@ test:
.PHONY: pre-dist
pre-dist:
ifeq ($(shell command -v goxc 2> /dev/null),)
$ go get -v -u github.com/laher/goxc
go get -v -u github.com/laher/goxc
endif
ifeq ($(shell command -v ghr 2> /dev/null),)
$ go get -v -u github.com/tcnksm/ghr
go get -v -u github.com/tcnksm/ghr
endif

.PHONY: dist
dist: dep
dist: dep pre-dist
goxc
openssl dgst -sha256 dist/snapshot/lsas_linux_386.zip
openssl dgst -sha256 dist/snapshot/lsas_darwin_386.zip
Expand Down

0 comments on commit 9558f3a

Please sign in to comment.