All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ryan Barnett" <ryanbarnett3@gmail.com>
To: opkg-devel@googlegroups.com, yocto@yoctoproject.org
Cc: Ryan Barnett <ryanbarnett3@gmail.com>,
	Christian Hermann <mail@hermannch.dev>
Subject: [opkg-utils PATCH v2] Makefile: separate manpages and utils install
Date: Mon, 22 Feb 2021 07:09:34 -0600	[thread overview]
Message-ID: <20210222130934.9213-1-ryanbarnett3@gmail.com> (raw)

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 <mail@hermannch.dev>
Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
---
v1 -> v2:
  - Leave all target behavior unchanged (suggested by Christian)
---
 Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4049654..fe96d5a 100644
--- a/Makefile
+++ b/Makefile
@@ -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
-- 
2.25.1


             reply	other threads:[~2021-02-22 13:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22 13:09 Ryan Barnett [this message]
2021-02-22 19:05 ` [opkg-devel] [opkg-utils PATCH v2] Makefile: separate manpages and utils install Alex Stewart
2021-02-23 22:18 ` Alex Stewart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210222130934.9213-1-ryanbarnett3@gmail.com \
    --to=ryanbarnett3@gmail.com \
    --cc=mail@hermannch.dev \
    --cc=opkg-devel@googlegroups.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.