From b5b423962a894465f6f9e801c093162c8f39aefd Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 6 Apr 2013 13:53:51 +0200 Subject: 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. --- man/Makefile.am | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'man') 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) -- cgit v1.2.3