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:
Jonathon Anderson
2023-10-09 12:36:51 -06:00
committed by Christian Goll
parent edda46feb4
commit 8c4f68849d

View File

@@ -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