Skip to contentSkip to conversation

Makefile: separate manpages and utils install

PATCH In review Ryan Barnett 2 participants 3 messages Feb 22, 2021 – Feb 23, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Makefile: separate 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

CC Christian Hermann <[email protected]>

---
v1 -> v2:
- Leave all target behavior unchanged (suggested by Christian)

---
 Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Makefile +6 -2
index 4049654..fe96d5a 100644
@@ -27,9 +27,11 @@ mandir ?= $(PREFIX)/man
 
 all: $(UTILS) $(MANPAGES)
 
-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
#1 lore raw

Hey Ryan,

This looks good to me. I'll merge this patch tomorrow, if there are no objections.

Thanks,

Signature · 5 lines
Alex Stewart
Software Engineer - NI Real-Time OS
NI (National Instruments)

[email protected]