From: Andreas Färber Date: Tue, 11 Jun 2013 11:13:58 +0000 (+0200) Subject: Makefile: Install qemu-img and qemu-nbd man pages only if built X-Git-Tag: TizenStudio_2.0_p2.3~768^2~59^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3202c02817ff0b03879653367e2e195bf387ec02;p=sdk%2Femulator%2Fqemu.git Makefile: Install qemu-img and qemu-nbd man pages only if built 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 Signed-off-by: Michael Tokarev (cherry picked from commit 8a3e8f7fd8144343f6c83e810b988c1e8a99d50a) Signed-off-by: Michael Roth --- diff --git a/Makefile b/Makefile index 7dc0204..46439f8 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"