]> git.sur5r.net Git - openldap/commitdiff
Manual support!
authorKurt Zeilenga <kurt@openldap.org>
Fri, 18 Sep 1998 18:47:14 +0000 (18:47 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 18 Sep 1998 18:47:14 +0000 (18:47 +0000)
build/man.mk [new file with mode: 0644]
build/rules.mk
configure.in
doc/Makefile.in [new file with mode: 0644]
doc/man/Makefile.in [new file with mode: 0644]
doc/man/man1/Makefile.in [new file with mode: 0644]
doc/man/man3/Makefile.in [new file with mode: 0644]
doc/man/man5/Makefile.in [new file with mode: 0644]
doc/man/man8/Makefile.in [new file with mode: 0644]

diff --git a/build/man.mk b/build/man.mk
new file mode 100644 (file)
index 0000000..2b616b4
--- /dev/null
@@ -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
index c9f7bf5d87be05e9fe8cdebe40c5e089fd189c2c..0137b289994d4507043dfe04b251c41d8fa4eaa9 100644 (file)
@@ -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
index 194a263b38acb1d7225f8e7867c7bbfcb4f8fb64..afac7bed29784fab755503603f40d4fab2cc0248 100644 (file)
@@ -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 (file)
index 0000000..c349a06
--- /dev/null
@@ -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 (file)
index 0000000..662e4a4
--- /dev/null
@@ -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 (file)
index 0000000..a257cd6
--- /dev/null
@@ -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 (file)
index 0000000..a257cd6
--- /dev/null
@@ -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 (file)
index 0000000..a257cd6
--- /dev/null
@@ -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 (file)
index 0000000..a257cd6
--- /dev/null
@@ -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