qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Makefile: Install qemu-img and qemu-nbd man pages only if built
@ 2013-06-11 11:13 Andreas Färber
  2013-06-11 11:56 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Färber @ 2013-06-11 11:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, qemu-stable, Andreas Färber, brogers

When splitting openSUSE's qemu and qemu-linux-user packages we noticed
that for linux-user-only builds unrelated man pages got installed.
It's surely possible to delete them before packaging, but not installing
them in the first place seems more logical.

Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 306e7bd..3cfa7d0 100644
--- a/Makefile
+++ b/Makefile
@@ -306,10 +306,13 @@ install-doc: $(DOCS)
 	$(INSTALL_DATA) QMP/qmp-commands.txt "$(DESTDIR)$(qemu_docdir)"
 ifdef CONFIG_POSIX
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
-	$(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
+	$(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1"
+ifneq ($(TOOLS),)
+	$(INSTALL_DATA) qemu-img.1 "$(DESTDIR)$(mandir)/man1"
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
 	$(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
 endif
+endif
 ifdef CONFIG_VIRTFS
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
 	$(INSTALL_DATA) fsdev/virtfs-proxy-helper.1 "$(DESTDIR)$(mandir)/man1"
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] Makefile: Install qemu-img and qemu-nbd man pages only if built
  2013-06-11 11:13 [Qemu-devel] [PATCH] Makefile: Install qemu-img and qemu-nbd man pages only if built Andreas Färber
@ 2013-06-11 11:56 ` Michael Tokarev
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2013-06-11 11:56 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-trivial, brogers, qemu-devel, qemu-stable

11.06.2013 15:13, Andreas Färber wrote:
> When splitting openSUSE's qemu and qemu-linux-user packages we noticed
> that for linux-user-only builds unrelated man pages got installed.
> It's surely possible to delete them before packaging, but not installing
> them in the first place seems more logical.

Thanks, applied to the trivial patches queue.

It is somethigh I wanted to do for a long time -- exactly due to the
same reason, when we build qemu-user[-static] target on debian it
installs the irrelevant manpages... ;)

/mjt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-11 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 11:13 [Qemu-devel] [PATCH] Makefile: Install qemu-img and qemu-nbd man pages only if built Andreas Färber
2013-06-11 11:56 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).