Skip to contentSkip to conversation

Makefile: seperate manpages and utils install

PATCH Superseded Ryan Barnett 1 participant 1 message Feb 21, 2021 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: seperate manpages and utils install

The installation of opkg-build man page introduces a host dependency on perl for the pod2man package to generate the man page.

To allow the opkg-utils scripts to be installed separately from the manpages, break apart the install step into two install steps:
install-utils and install-docs

---
 Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
Makefile +7 -3
index 4049654..7b7b8d5 100644
@@ -25,11 +25,13 @@ mandir ?= $(PREFIX)/man
 %.1: %
 	pod2man -r "" -c "opkg-utils Documentation" $< $@
 
-all: $(UTILS) $(MANPAGES)
+all: install
 
-install: all
+install-utils: $(UTILS)
 	install -d $(DESTDIR)$(bindir)
 	install -m 755 $(UTILS) $(DESTDIR)$(bindir)
+
+install-docs: $(MANPAGES)
 	install -d $(DESTDIR)$(mandir)
 	for m in $(MANPAGES); \
 	do \
@@ -37,4 +39,6 @@ install: all
 		install -m 644 "$$m" $(DESTDIR)$(mandir)/man$${m##*.}; \
 	done
 
-.PHONY: install all
+install: install-utils install-docs
+
+.PHONY: install install-utils install-docs all
Signature · 1 line
2.25.1