update makefile

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-07-26 23:24:43 +08:00
parent a2143d4fce
commit ac7bd0afd3
1 changed files with 3 additions and 2 deletions

View File

@ -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)