diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-30 13:12:24 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-30 13:12:24 +0000 |
commit | 7a2be86bdcd4754cd08594dc4dfc98809df8e050 (patch) | |
tree | 00375e4c925029c3624e36155d36891adae3c6f1 /man | |
parent | dbaa66cf07df8b787aded4625ceae1eb44aaed7d (diff) |
make the way manual pages are selected for installation more maintainable
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1884 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'man')
-rw-r--r-- | man/Makefile.am | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index f88d6ef..2c0b9b7 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -17,25 +17,21 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA -dist_man_MANS = nslcd.conf.5 nslcd.8 +NSLCD_MANS = nslcd.conf.5 nslcd.8 +PYNSLCD_MANS = pynslcd.8 +PAM_MANS = pam_ldap.8 +ALLMANS = $(NSLCD_MANS) $(PYNSLCD_MANS) $(PAM_MANS) -EXTRA_DIST = nslcd.conf.5.xml nslcd.8.xml pam_ldap.8.xml pynslcd.8.xml +noinst_DATA = $(ALLMANS) +EXTRA_DIST = $(shell echo $(ALLMANS) | sed 's/ \|$$/.xml /g') -# ensure that the pam_ldap manpage is always built but only installed -# if the PAM module is built +# figure out which manual pages to install +dist_man_MANS = $(NSLCD_MANS) if ENABLE_PAM -dist_man_MANS += pam_ldap.8 -else -EXTRA_DIST += pam_ldap.8 -noinst_DATA = pam_ldap.8 + dist_man_MANS += $(PAM_MANS) endif - -# ensure that pynslcd manpage is installed when pynslcd is built if ENABLE_PYNSLCD -dist_man_MANS += pynslcd.8 -else -EXTRA_DIST += pynslcd.8 -noinst_DATA = pynslcd.8 + dist_man_MANS += $(PYNSLCD_MANS) endif if GENMAN |