mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Manual support!
This commit is contained in:
parent
09b44ff101
commit
b048b22ed9
9 changed files with 84 additions and 1 deletions
43
build/man.mk
Normal file
43
build/man.mk
Normal file
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
6
doc/Makefile.in
Normal file
6
doc/Makefile.in
Normal file
|
|
@ -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
|
||||
6
doc/man/Makefile.in
Normal file
6
doc/man/Makefile.in
Normal file
|
|
@ -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
|
||||
6
doc/man/man1/Makefile.in
Normal file
6
doc/man/man1/Makefile.in
Normal file
|
|
@ -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
|
||||
6
doc/man/man3/Makefile.in
Normal file
6
doc/man/man3/Makefile.in
Normal file
|
|
@ -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
|
||||
6
doc/man/man5/Makefile.in
Normal file
6
doc/man/man5/Makefile.in
Normal file
|
|
@ -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
|
||||
6
doc/man/man8/Makefile.in
Normal file
6
doc/man/man8/Makefile.in
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue