Un-mark vendor target as phony
Contrary to #945, marking vendor as phony causes binaries to be re-built on a repeated call to `make`. Though we can't determine when vendor needs to be rebuilt, this is preferable to not knowing when Warewulf binaries need to be rebuilt. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
committed by
Christian Goll
parent
edda46feb4
commit
8c4f68849d
7
Makefile
7
Makefile
@@ -10,7 +10,6 @@ build: wwctl wwclient wwapid wwapic wwapird etc/defaults.conf etc/bash_completio
|
||||
.PHONY: docs
|
||||
docs: man_pages reference
|
||||
|
||||
.PHONY: vendor
|
||||
vendor:
|
||||
go mod vendor
|
||||
|
||||
@@ -42,6 +41,8 @@ dist: vendor
|
||||
lint: $(GOLANGCI_LINT)
|
||||
|
||||
$(protofiles): $(PROTOC) $(PROTOC_GEN_GRPC_GATEWAY) $(PROTOC_GEN_GO) $(PROTOC_GEN_GO_GRPC)
|
||||
|
||||
clean: cleanvendor
|
||||
endif
|
||||
|
||||
wwctl: $(config) $(call godeps,cmd/wwctl/main.go)
|
||||
@@ -223,9 +224,7 @@ cleandocs:
|
||||
|
||||
.PHONY: cleanvendor
|
||||
cleanvendor:
|
||||
ifndef OFFLINE_BUILD
|
||||
rm -rf vendor
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
clean: cleanconfig cleantest cleandist cleantools cleanmake cleanbin cleandocs cleanvendor
|
||||
clean: cleanconfig cleantest cleandist cleantools cleanmake cleanbin cleandocs
|
||||
|
||||
Reference in New Issue
Block a user