summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-02 15:06:40 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-02 15:06:40 +0200
commit0c47a87ebf3d99864aa03205c695f2057dc7e7fd (patch)
treeed4f83aefc6391de475e8fabd2ab84370c5bc39e
parente2966e7c1ee46899a5d84b0cf187891c31b6b35e (diff)
Don't install qphotorec man pages if qphotorec isn't compiled
-rw-r--r--icons/Makefile.am8
-rw-r--r--man/Makefile.am8
-rw-r--r--man/zh_CN/Makefile.am8
3 files changed, 17 insertions, 7 deletions
diff --git a/icons/Makefile.am b/icons/Makefile.am
index f6cfdd6..59fe24b 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 35535f2..c5e7179 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 fdae30a..220aacb 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