Separate man_pages into new docs target

This allows `make` and `make all` to avoid unnecessary repeat builds,
and saves automatic generation of man pages for `install`.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2023-08-31 17:06:47 -06:00
parent bfe9804296
commit 41f86f7f58

View File

@@ -5,7 +5,10 @@ include Variables.mk
include Tools.mk
.PHONY: build
build: wwctl wwclient man_pages wwapid wwapic wwapird etc/defaults.conf etc/bash_completion.d/wwctl
build: wwctl wwclient wwapid wwapic wwapird etc/defaults.conf etc/bash_completion.d/wwctl
.PHONY: docs
docs: man_pages reference
vendor:
ifndef OFFLINE_BUILD
@@ -81,7 +84,7 @@ test-cover: $(config)
go tool cover -html=coverage/cover.out -o=coverage/cover.html
.PHONY: install
install: all
install: build docs
install -d -m 0755 $(DESTDIR)$(BINDIR)
install -d -m 0755 $(DESTDIR)$(WWCHROOTDIR)
install -d -m 0755 $(DESTDIR)$(WWPROVISIONDIR)