From ac7bd0afd36ef44b713a0e4ef346843629ab8004 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 26 Jul 2017 23:24:43 +0800 Subject: [PATCH] update makefile Signed-off-by: Bo-Yi Wu --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b2d460a..9000a26 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -.PHONY: all gorush test build fmt vet errcheck lint install update release-dirs release-build release-copy release-check release - DIST := dist EXECUTABLE := gorush @@ -29,6 +27,7 @@ else VERSION ?= $(shell git describe --tags --always || git rev-parse --short HEAD) endif +.PHONY: all all: build init: @@ -82,9 +81,11 @@ unconvert: fi for PKG in $(PACKAGES); do unconvert -v $$PKG || exit 1; done; +.PHONY: install install: $(SOURCES) go install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' +.PHONY: build build: $(EXECUTABLE) $(EXECUTABLE): $(SOURCES)