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 <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2023-08-22 23:36:10 -06:00
parent 1047032bae
commit 67a39061ae

View File

@@ -1,8 +1,11 @@
.PHONY: all
all: build
include Variables.mk include Variables.mk
include Tools.mk include Tools.mk
.PHONY: all .PHONY: build
all: wwctl wwclient man_pages wwapid wwapic wwapird etc/defaults.conf etc/bash_completion.d/wwctl build: wwctl wwclient man_pages wwapid wwapic wwapird etc/defaults.conf etc/bash_completion.d/wwctl
vendor: vendor:
ifndef OFFLINE_BUILD ifndef OFFLINE_BUILD