mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
edd464ee8f
default sysconfdir subdirectory is openldap instead of ldap. This removes conflicts with other ldap subsystems. Should be configure option. *.conf files are now preserved. A *.conf.default are always created with the latest conf. *.help and ldapfriendly are now placed in $(datadir)/$(ldap_subdir) updated man pages to reflect changes.
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
##---------------------------------------------------------------------------
|
|
##
|
|
## Makefile Template for Manual Pages
|
|
##
|
|
|
|
MANDIR=$(mandir)/man$(MANSECT)
|
|
|
|
install-common: FORCE
|
|
-$(MKDIR) -p $(MANDIR)
|
|
@TMPMAN=/tmp/ldapman.$$$$$(MANCOMPRESSSUFFIX); \
|
|
VERSION=`$(CAT) $(VERSIONFILE)`; \
|
|
for page in *.$(MANSECT); do \
|
|
$(SED) -e "s%LDVERSION%$$VERSION%" \
|
|
-e 's%ETCDIR%$(sysconfdir)%' \
|
|
-e 's%SYSCONFDIR%$(sysconfdir)%' \
|
|
-e 's%DATADIR%$(datadir)%' \
|
|
-e 's%SBINDIR%$(sbindir)%' \
|
|
-e 's%BINDIR%$(bindir)%' \
|
|
-e 's%LIBDIR%$(libdir)%' \
|
|
-e 's%LIBEXECDIR%$(libexecdir)%' \
|
|
$$page | $(MANCOMPRESS) > $$TMPMAN; \
|
|
echo "installing $(MANDIR)/$$page"; \
|
|
$(RM) $(MANDIR)/$$page $(MANDIR)/$$page$(MANCOMPRESSSUFFIX); \
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 $$TMPMAN $(MANDIR)/$$page$(MANCOMPRESSSUFFIX); \
|
|
if [ -f "$$page.links" ]; then \
|
|
for link in `$(CAT) $$page.links`; do \
|
|
echo "installing $(MANDIR)/$$link as link to $$page"; \
|
|
$(RM) $(INSTDIR)/$$link $(MANDIR)/$$link$(MANCOMPRESSSUFFIX); \
|
|
ln -sf $$page$(MANCOMPRESSSUFFIX) $(MANDIR)/$$link$(MANCOMPRESSSUFFIX); \
|
|
done; \
|
|
fi; \
|
|
done; \
|
|
$(RM) $$TMPMAN
|
|
|
|
Makefile: $(top_srcdir)/build/lib.mk
|
|
|