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 DIST := dist
EXECUTABLE := gorush EXECUTABLE := gorush
@ -29,6 +27,7 @@ else
VERSION ?= $(shell git describe --tags --always || git rev-parse --short HEAD) VERSION ?= $(shell git describe --tags --always || git rev-parse --short HEAD)
endif endif
.PHONY: all
all: build all: build
init: init:
@ -82,9 +81,11 @@ unconvert:
fi fi
for PKG in $(PACKAGES); do unconvert -v $$PKG || exit 1; done; for PKG in $(PACKAGES); do unconvert -v $$PKG || exit 1; done;
.PHONY: install
install: $(SOURCES) install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' go install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'
.PHONY: build
build: $(EXECUTABLE) build: $(EXECUTABLE)
$(EXECUTABLE): $(SOURCES) $(EXECUTABLE): $(SOURCES)