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:
7
Makefile
7
Makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user