From 67a39061ae2d5d583474e93a8b08f044eed8f432 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Tue, 22 Aug 2023 23:36:10 -0600 Subject: [PATCH] Move `all` target to top of `Makefile` The `all` target should be the default for make; but placing it after the `include` directives allowed the targets within the included files to take precedence. Moving `all` before the `include` directives restores it to default status. I also used this opportunity to restore the `build` target as the defining target, and then just set up a dependency between `all` and `build`. Signed-off-by: Jonathon Anderson --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b718142e..16a8676e 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ +.PHONY: all +all: build + include Variables.mk include Tools.mk -.PHONY: all -all: wwctl wwclient man_pages wwapid wwapic wwapird etc/defaults.conf etc/bash_completion.d/wwctl +.PHONY: build +build: wwctl wwclient man_pages wwapid wwapic wwapird etc/defaults.conf etc/bash_completion.d/wwctl vendor: ifndef OFFLINE_BUILD