From 8c4f68849d5e06b8737bb38e9f4c53db0639635e Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Mon, 9 Oct 2023 12:36:51 -0600 Subject: [PATCH] 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 --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8879a5e9..1985bd68 100644 --- a/Makefile +++ b/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