From: Kurt Zeilenga Date: Fri, 18 Sep 1998 18:47:14 +0000 (+0000) Subject: Manual support! X-Git-Tag: PHP3_TOOL_0_0~18^2~113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b048b22ed9558735c84eabd5e1bfd1c62c4aef39;p=openldap Manual support! --- diff --git a/build/man.mk b/build/man.mk new file mode 100644 index 0000000000..2b616b4c2d --- /dev/null +++ b/build/man.mk @@ -0,0 +1,43 @@ +##--------------------------------------------------------------------------- +## +## Makefile Template for Manual Pages +## + +MANDIR=$(mandir)/man$(MANSECT) + +install-common: all-common install-local + -$(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%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 + +all-common: all-local +clean-common: clean-local +veryclean-common: veryclean-local clean-local +depend-common: depend-local +lint: lint-local +lint5: lint5-local + +# these could be empty +lint-local: FORCE +lint5-local: FORCE diff --git a/build/rules.mk b/build/rules.mk index c9f7bf5d87..0137b28999 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -5,7 +5,7 @@ all-common: all-local $(PROGRAMS) -install-common: all install-local +install-common: all-common install-local clean-common: clean-local $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o a.out core diff --git a/configure.in b/configure.in index 194a263b38..afac7bed29 100644 --- a/configure.in +++ b/configure.in @@ -350,6 +350,10 @@ AC_OUTPUT( \ Makefile:build/top.mk:Makefile.in:build/dir.mk \ doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \ doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \ +doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \ +doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \ +doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \ +doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \ clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \ clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \ clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \ diff --git a/doc/Makefile.in b/doc/Makefile.in new file mode 100644 index 0000000000..c349a064e4 --- /dev/null +++ b/doc/Makefile.in @@ -0,0 +1,6 @@ +## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. +## COPYING RESTRICTIONS APPLY, See COPYRIGHT file +## +## doc Makefile.in for OpenLDAP + +SUBDIRS= man diff --git a/doc/man/Makefile.in b/doc/man/Makefile.in new file mode 100644 index 0000000000..662e4a4c88 --- /dev/null +++ b/doc/man/Makefile.in @@ -0,0 +1,6 @@ +## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. +## COPYING RESTRICTIONS APPLY, See COPYRIGHT file +## +## man Makefile.in for OpenLDAP + +SUBDIRS= man1 man3 man5 man8 diff --git a/doc/man/man1/Makefile.in b/doc/man/man1/Makefile.in new file mode 100644 index 0000000000..a257cd6dda --- /dev/null +++ b/doc/man/man1/Makefile.in @@ -0,0 +1,6 @@ +## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. +## COPYING RESTRICTIONS APPLY, See COPYRIGHT file +## +## man1 Makefile.in for OpenLDAP + +MANSECT=1 diff --git a/doc/man/man3/Makefile.in b/doc/man/man3/Makefile.in new file mode 100644 index 0000000000..a257cd6dda --- /dev/null +++ b/doc/man/man3/Makefile.in @@ -0,0 +1,6 @@ +## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. +## COPYING RESTRICTIONS APPLY, See COPYRIGHT file +## +## man1 Makefile.in for OpenLDAP + +MANSECT=1 diff --git a/doc/man/man5/Makefile.in b/doc/man/man5/Makefile.in new file mode 100644 index 0000000000..a257cd6dda --- /dev/null +++ b/doc/man/man5/Makefile.in @@ -0,0 +1,6 @@ +## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. +## COPYING RESTRICTIONS APPLY, See COPYRIGHT file +## +## man1 Makefile.in for OpenLDAP + +MANSECT=1 diff --git a/doc/man/man8/Makefile.in b/doc/man/man8/Makefile.in new file mode 100644 index 0000000000..a257cd6dda --- /dev/null +++ b/doc/man/man8/Makefile.in @@ -0,0 +1,6 @@ +## Copyright 1998 The OpenLDAP Foundation, All Rights Reserved. +## COPYING RESTRICTIONS APPLY, See COPYRIGHT file +## +## man1 Makefile.in for OpenLDAP + +MANSECT=1