Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-04-06 13:53:51 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-04-06 13:53:51 +0200
commitb5b423962a894465f6f9e801c093162c8f39aefd (patch)
tree8528477ca731466cca4d5ac3d2303c0c3ee1bd5a /man
parent187c626daac51ae1d6ce100930e61612650719c8 (diff)
Fix the way manual pages are installed
The :u flag apparently isn't portable across versions of make and automake rules complain if a manual page is added twice to a target.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am16
1 files changed, 9 insertions, 7 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 5b8d7f4..bb186bf 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -20,24 +20,26 @@
PAM_MANS = pam_ldap.8
UTILS_MANS = getent.ldap.1 chsh.ldap.1
NSLCD_MANS = nslcd.conf.5 nslcd.8
-PYNSLCD_MANS = nslcd.conf.5 pynslcd.8
+PYNSLCD_MANS = pynslcd.8
ALL_MANS = $(PAM_MANS) $(UTILS_MANS) $(NSLCD_MANS) $(PYNSLCD_MANS)
# figure out which manual pages to install
-INST_MANS =
+man_MANS =
if ENABLE_PAM
- INST_MANS += $(PAM_MANS)
+ man_MANS += $(PAM_MANS)
endif
if ENABLE_UTILS
- INST_MANS += $(UTILS_MANS)
+ man_MANS += $(UTILS_MANS)
endif
if ENABLE_NSLCD
- INST_MANS += $(NSLCD_MANS)
+ man_MANS += $(NSLCD_MANS)
endif
if ENABLE_PYNSLCD
- INST_MANS += $(PYNSLCD_MANS)
+ man_MANS += $(PYNSLCD_MANS)
+if !ENABLE_NSLCD
+ man_MANS += nslcd.conf.5
+endif
endif
-man_MANS = $(INST_MANS:u)
noinst_DATA = $(ALL_MANS)
EXTRA_DIST = $(ALL_MANS) $(ALL_MANS:=.xml)