From 0c47a87ebf3d99864aa03205c695f2057dc7e7fd Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 2 May 2015 15:06:40 +0200 Subject: [PATCH] Don't install qphotorec man pages if qphotorec isn't compiled --- icons/Makefile.am | 8 +++++--- man/Makefile.am | 8 ++++++-- man/zh_CN/Makefile.am | 8 ++++++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/icons/Makefile.am b/icons/Makefile.am index f6cfdd65..59fe24bd 100644 --- a/icons/Makefile.am +++ b/icons/Makefile.am @@ -1,12 +1,14 @@ -EXTRA_DIST = photorec.ico testdisk.ico +EXTRA_DIST = photorec.ico testdisk.ico \ + 48x48/apps/qphotorec.png \ + scalable/apps/qphotorec.svg iconsdir = $(datadir)/icons/hicolor -nobase_dist_icons_DATA = 48x48/apps/qphotorec.png \ - scalable/apps/qphotorec.svg gtk_update_icon_cache = gtk-update-icon-cache -f -t $(iconsdir) if USEQT + nobase_icons_DATA = 48x48/apps/qphotorec.png \ + scalable/apps/qphotorec.svg UPDATE_ICON_CACHE=update-icon-cache endif diff --git a/man/Makefile.am b/man/Makefile.am index 35535f22..c5e71798 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,4 +1,8 @@ SUBDIRS = zh_CN -man_MANS = testdisk.8 photorec.8 qphotorec.8 fidentify.8 -EXTRA_DIST = testdisk.8.in photorec.8.in qphotorec.8.in fidentify.8.in +EXTRA_DIST = testdisk.8.in photorec.8.in fidentify.8.in qphotorec.8.in + +man_MANS = testdisk.8 photorec.8 fidentify.8 +if USEQT + man_MANS += qphotorec.8 +endif diff --git a/man/zh_CN/Makefile.am b/man/zh_CN/Makefile.am index fdae30ab..220aacb8 100644 --- a/man/zh_CN/Makefile.am +++ b/man/zh_CN/Makefile.am @@ -1,4 +1,8 @@ mandir = @mandir@/zh_CN -man_MANS = testdisk.8 photorec.8 qphotorec.8 fidentify.8 -EXTRA_DIST = testdisk.8.in photorec.8.in qphotorec.8.in fidentify.8.in +EXTRA_DIST = testdisk.8.in photorec.8.in fidentify.8.in qphotorec.8.in + +man_MANS = testdisk.8 photorec.8 fidentify.8 +if USEQT + man_MANS += qphotorec.8 +endif