[ci skip] add comment on Makefile. (#273)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-08-19 21:23:29 +08:00 committed by GitHub
parent 2bf5f06913
commit acc83c1fa5
1 changed files with 5 additions and 2 deletions

View File

@ -81,12 +81,15 @@ unconvert:
fi
for PKG in $(PACKAGES); do unconvert -v $$PKG || exit 1; done;
.PHONY: install
# Install from source.
install: $(SOURCES)
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'
@echo "==> Installed gorush ${GOPATH}/bin/gorush"
.PHONY: install
.PHONY: build
# build from source
build: $(EXECUTABLE)
.PHONY: build
$(EXECUTABLE): $(SOURCES)
$(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o bin/$@