From: Sebastien Douheret Date: Tue, 20 Jun 2017 21:06:04 +0000 (+0200) Subject: Only execute vendor rule when building all. X-Git-Tag: 0.1.0~20 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-agent.git;a=commitdiff_plain;h=c5b841cec8b6d7afd1c7113aee0060b685688b38 Only execute vendor rule when building all. --- diff --git a/Makefile b/Makefile index b844682..64064fe 100644 --- a/Makefile +++ b/Makefile @@ -71,9 +71,9 @@ else endif -all: tools/syncthing build +all: tools/syncthing vendor build -build: vendor tools/syncthing/copytobin +build: tools/syncthing/copytobin @echo "### Build XDS agent (version $(VERSION), subversion $(SUB_VERSION)) - $(BUILD_MODE)"; @cd $(ROOT_SRCDIR); $(BUILD_ENV_FLAGS) go build $(VERBOSE_$(V)) -i -o $(LOCAL_BINDIR)/xds-agent$(EXT) -ldflags "$(GORELEASE) -X main.AppVersion=$(VERSION) -X main.AppSubVersion=$(SUB_VERSION)" .