Call vendor make target when building binary

This will ensure vendor dir is populated
This commit is contained in:
Łukasz Mierzwa
2017-08-08 11:01:29 -07:00
parent b4329bcf80
commit 4aa187674c
+7 -2
View File
@@ -49,11 +49,11 @@ endif
rm -f .build/bindata_assetfs.*
touch $@
bindata_assetfs.go: .build/deps.ok .build/bindata_assetfs.$(GO_BINDATA_MODE) $(ASSET_SOURCES) webpack.config.js
bindata_assetfs.go: .build/deps.ok .build/bindata_assetfs.$(GO_BINDATA_MODE) $(ASSET_SOURCES) webpack.config.js .build/vendor.ok
$(CURDIR)/node_modules/.bin/webpack -p
go-bindata-assetfs $(GO_BINDATA_FLAGS) -prefix assets -nometadata assets/templates/... assets/static/dist/...
$(NAME): .build/deps.ok bindata_assetfs.go $(SOURCES)
$(NAME): .build/deps.ok .build/vendor.ok bindata_assetfs.go $(SOURCES)
go build -ldflags "-X main.version=$(VERSION)"
.PHONY: clean
@@ -104,6 +104,11 @@ test: lint bindata_assetfs.go
@mkdir -p .build
touch $@
.build/vendor.ok: Gopkg.lock Gopkg.toml .build/dep.ok
dep ensure
dep prune
touch $@
.PHONY: vendor
vendor: .build/dep.ok
dep ensure