summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-04-28 10:10:08 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-04-28 10:10:08 +0000
commitea951fdc8682146f7f03216a7839441678d45657 (patch)
tree1c270ce5309d39976c61297109b31212bb43a562 /doc
parentaa8e2399ead6c8e87c3fd878fcb4f0f1d008abf7 (diff)
downloadlinux-pam-git-ea951fdc8682146f7f03216a7839441678d45657.tar.gz
build: rework vendordir substitution
Since Make.xml.rules is the only place where XSLTPROC_CUSTOM was used, remove stereotypic definitions from other Makefiles, this way we no longer have to worry about vendordir being used somewhere else in documentation files. Likewise, define VENDORDIR in config.h and remove stereotypic -DVENDORDIR= additions from other Makefiles, this way we no longer have to worry about VENDORDIR being used somewhere else in the code. * configure.ac (AM_CONDITIONAL): Remove HAVE_VENDORDIR. (AC_DEFINE_UNQUOTED): Add VENDORDIR. (AC_SUBST): Remove VENDORDIR, add STRINGPARAM_VENDORDIR. * Make.xml.rules.in: Replace $(XSLTPROC_CUSTOM) with @STRINGPARAM_VENDORDIR@. * doc/man/Makefile.am (XSLTPROC_CUSTOM): Remove. * libpam/Makefile.am [HAVE_VENDORDIR]: Remove. * modules/pam_securetty/Makefile.am [HAVE_VENDORDIR]: Remove. (XSLTPROC_CUSTOM): Remove. * modules/pam_securetty/pam_securetty.c: Move definitions of local macros after config.h to benefit from macros defined there.
Diffstat (limited to 'doc')
-rw-r--r--doc/man/Makefile.am5
1 files changed, 0 insertions, 5 deletions
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 8e76897e..78c891df 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -59,10 +59,5 @@ pam.d.5: pam.conf.5
pam_get_item.3: pam_item_types_std.inc.xml pam_item_types_ext.inc.xml
pam_set_data.3: pam_item_types_std.inc.xml pam_item_types_ext.inc.xml
pam.conf.5: pam.conf-desc.xml pam.conf-dir.xml pam.conf-syntax.xml
-if HAVE_VENDORDIR
-XSLTPROC_CUSTOM = --stringparam vendordir $(VENDORDIR)
-else
-XSLTPROC_CUSTOM = --stringparam vendordir "<vendordir>"
-endif
-include $(top_srcdir)/Make.xml.rules
endif