[rrd-developers] [PATCH] doc/Makefile: Moved the 'librrd' manpage to section 3.

Sebastian Harl sh at tokkee.org
Sun Sep 27 23:35:37 CEST 2009


This manpage does not document an executable but rather library calls.
---
 program/doc/Makefile.am |   32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/program/doc/Makefile.am b/program/doc/Makefile.am
index 4af8d7b..c805740 100644
--- a/program/doc/Makefile.am
+++ b/program/doc/Makefile.am
@@ -1,19 +1,19 @@
 ## Process this file with automake to produce Makefile.in
 
-SUFFIXES = .pod .pl .1 .man .html .txt .pm .pdf .inc
+SUFFIXES = .pod .pl .1 .3 .man .html .txt .pm .pdf .inc
 
 AUTOMAKE_OPTIONS        =  foreign
 
 #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4
 
-CLEANFILES = *.1 *.html *.txt *-dircache RRD?.pod *.pdf *~ core *itemcache *.rej *.orig *.tmp
+CLEANFILES = *.1 *.3 *.html *.txt *-dircache RRD?.pod *.pdf *~ core *itemcache *.rej *.orig *.tmp
 
 POD = bin_dec_hex.pod        rrddump.pod            rrdgraph_examples.pod  rrdrestore.pod         rrdupdate.pod  \
       cdeftutorial.pod       rrdfetch.pod           rrdgraph_graph.pod     rrdthreads.pod         rrdxport.pod   \
       rpntutorial.pod        rrdfirst.pod           rrdgraph_rpn.pod       rrdtool.pod            rrdcached.pod  \
       rrd-beginners.pod      rrdinfo.pod            rrdtune.pod            rrdbuild.pod           rrdflushcached.pod   \
       rrdcgi.pod             rrdgraph.pod           rrdlast.pod            rrdlastupdate.pod                     \
-      rrdcreate.pod          rrdgraph_data.pod      rrdresize.pod          rrdtutorial.pod        librrd.pod
+      rrdcreate.pod          rrdgraph_data.pod      rrdresize.pod          rrdtutorial.pod
 
 if BUILD_LIBDBI
   POD += rrdgraph_libdbi.pod
@@ -23,15 +23,18 @@ if BUILD_LUA
   POD += rrdlua.pod
 endif
 
+POD3 = librrd.pod
+
 PMP = RRDs.pod RRDp.pod
 
 MAN = $(POD:.pod=.1)
-TXT = $(MAN:.1=.txt)
-HTML = $(POD:.pod=.html) $(PMP:.pod=.html)
-PDF = $(MAN:.1=.pdf)
+MAN3 = $(POD3:.pod=.3)
+TXT = $(MAN:.1=.txt) $(MAN3:.3=.txt)
+HTML = $(POD:.pod=.html) $(POD3:.pod=.html) $(PMP:.pod=.html)
+PDF = $(MAN:.1=.pdf) $(MAN3:.3=.pdf)
 
 # what should go into the distribution
-EXTRA_DIST= $(POD) $(HTML) $(MAN) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd rrdgraph_libdbi.pod rrdlua.pod
+EXTRA_DIST= $(POD) $(POD3) $(HTML) $(MAN) $(MAN3) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd rrdgraph_libdbi.pod rrdlua.pod
 
 idocdir = $(RRDDOCDIR)/txt
 idoc_DATA = $(POD) $(TXT)
@@ -39,8 +42,10 @@ ihtmldir = $(RRDDOCDIR)/html
 ihtml_DATA = $(HTML)
 imandir = $(mandir)/man1
 iman_DATA = $(MAN)
+iman3dir = $(mandir)/man3
+iman3_DATA = $(MAN3)
 
-all-local: link txt man html-local
+all-local: link man txt html-local
 
 .src.pod:
 	perl -n -e 'if (/^=include\s+(\S+)/){open F,"$$1.inc" || die $$?;print <F>; close F} else {print}'  $<  > $@
@@ -48,10 +53,13 @@ all-local: link txt man html-local
 .pod.1 .pm.1 .pl.1:
 	$(AM_V_GEN)@POD2MAN@ --release=$(VERSION) --center=rrdtool $<  > $@
 
-.1.txt:
+.pod.3:
+	$(AM_V_GEN)@POD2MAN@ --release=$(VERSION) --center=rrdtool --section=3 $< > $@
+
+.1.txt .3.txt:
 	$(AM_V_GEN)GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@
 
-.1.pdf:
+.1.pdf .3.pdf:
 	$(AM_V_GEN)@TROFF@ -man $< | ps2pdf - $@
 
 .pm.html .pod.html .pl.html:
@@ -65,7 +73,7 @@ RRDp.pod:
 
 link: RRDp.pod RRDs.pod
 
-man: $(MAN)
+man: $(MAN) $(MAN3)
 
 html-local: $(HTML)
 
@@ -73,7 +81,7 @@ txt: $(TXT)
 
 pdf-local: $(PDF)
 
-pod: $(POD)
+pod: $(POD) $(POD3)
 
 install-data-hook:
 	$(AM_V_GEN)cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html
-- 
1.6.5.rc2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20090927/4b73aef3/attachment-0001.pgp 


More information about the rrd-developers mailing list