From 41f86f7f5810d9dae10f12e08f0120951a2373ee Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Thu, 31 Aug 2023 17:06:47 -0600 Subject: [PATCH] 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 --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 520a17f7..2960d7e5 100644 --- a/Makefile +++ b/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)