From 9558f3aaa35ab3f4deb31bc17e8e27ef85cbea02 Mon Sep 17 00:00:00 2001 From: budougumi0617 Date: Sat, 28 Jul 2018 10:01:28 +0900 Subject: [PATCH] :recycle: Refactoring Makefile --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2a4d1e5..697641e 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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