summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-16 22:05:38 +0000
committerArthur de Jong <arthur@arthurdejong.org>2013-01-16 22:05:38 +0000
commit2765100078269ba03f9765f2508c32be1b72d6fa (patch)
tree334be92633ad5ee92952285de232bfb14458a9c2 /man
parent2caeef4254d1e6dfb42863754cfd5479a6f849c2 (diff)
fix the way manual pages are generated and distributed
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1918 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am25
1 files changed, 14 insertions, 11 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 2c0b9b7..19199e9 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,6 +1,6 @@
# Makefile.am - use automake to generate Makefile.in
#
-# Copyright (C) 2007, 2009, 2010 Arthur de Jong
+# Copyright (C) 2007, 2009, 2010, 2012, 2013 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -17,26 +17,29 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
-NSLCD_MANS = nslcd.conf.5 nslcd.8
-PYNSLCD_MANS = pynslcd.8
PAM_MANS = pam_ldap.8
-ALLMANS = $(NSLCD_MANS) $(PYNSLCD_MANS) $(PAM_MANS)
-
-noinst_DATA = $(ALLMANS)
-EXTRA_DIST = $(shell echo $(ALLMANS) | sed 's/ \|$$/.xml /g')
+NSLCD_MANS = nslcd.conf.5 nslcd.8
+PYNSLCD_MANS = nslcd.conf.5 pynslcd.8
+ALL_MANS = $(PAM_MANS) $(NSLCD_MANS) $(PYNSLCD_MANS)
# figure out which manual pages to install
-dist_man_MANS = $(NSLCD_MANS)
+INST_MANS =
if ENABLE_PAM
- dist_man_MANS += $(PAM_MANS)
+ INST_MANS += $(PAM_MANS)
+endif
+if ENABLE_NSLCD
+ INST_MANS += $(NSLCD_MANS)
endif
if ENABLE_PYNSLCD
- dist_man_MANS += $(PYNSLCD_MANS)
+ INST_MANS += $(PYNSLCD_MANS)
endif
+man_MANS = $(INST_MANS:u)
+noinst_DATA = $(ALL_MANS)
+EXTRA_DIST = $(ALL_MANS) $(ALL_MANS:=.xml)
if GENMAN
-MAINTAINERCLEANFILES = $(dist_man_MANS)
+MAINTAINERCLEANFILES = $(ALL_MANS)
SUFFIXES = .xml
.xml: