feat(makefile): add phony for build.

This commit is contained in:
Bo-Yi Wu 2019-02-04 18:13:55 +08:00
parent 1ef90c8461
commit cea2056d26
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ install: $(SOURCES)
.PHONY: build .PHONY: build
build: $(EXECUTABLE) build: $(EXECUTABLE)
.PHONY: $(EXECUTABLE)
$(EXECUTABLE): $(SOURCES) $(EXECUTABLE): $(SOURCES)
$(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o release/$@ $(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o release/$@