X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=doc%2FMakefile.am;h=261e8c77d19a1ee297ca444d1bee0dc7a623f032;hb=3919b6d8c40073f47fc37424d0c022752ce85f29;hp=64a33ee6b3b0a8dbe2630a26eecdaa9f30e0185d;hpb=73e35fca20119bca0018ef62dda0c4c67d850220;p=rrdtool.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 64a33ee..261e8c7 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,17 +1,21 @@ ## Process this file with automake to produce Makefile.in -SUFFIXES = .pod .1 .man .html .txt .pm .pdf +SUFFIXES = .pod .1 .man .html .txt .pm .pdf .src .inc #AUTOMAKE_OPTIONS = foreign #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4 -CLEANFILES = *.1 *.html *.txt *-dircache *.pm *.pdf *~ core *itemcache *.rej *.orig +CLEANFILES = *.1 *.html *.txt *-dircache *.pm *.pdf *~ core *itemcache *.rej *.orig rrdgraph_*.pod + +SRC = rrdgraph.src rrdgraph_examples.src rrdgraph_rpn.src \ + rrdgraph_data.src rrdgraph_graph.src POD = rrdtool.pod rrdlast.pod rrdcreate.pod rrdupdate.pod rrdtutorial.es.pod \ - cdeftutorial.pod rpntutorial.pod rrdgraph.pod bin_dec_hex.pod \ + cdeftutorial.pod rpntutorial.pod rrdgraph-old.pod bin_dec_hex.pod \ rrdfetch.pod rrdrestore.pod rrddump.pod rrdtune.pod rrdresize.pod \ - rrdcgi.pod rrdtutorial.pod rrdinfo.pod + rrdxport.pod rrdcgi.pod rrdtutorial.pod rrdinfo.pod rrdthreads.pod \ + $(SRC:.src=.pod) PMP = RRDs.pm RRDp.pm @@ -33,6 +37,9 @@ iman_DATA = $(MAN) all-local: link txt man html +.src.pod: + perl -n -e 'if (/^=include\s+(\S+)/){open F,"$$1.inc" || die $$?;print ; close F} else {print}' $< > $@ + .pod.1 .pm.1 .pl.1: pod2man --release=$(VERSION) --center=rrdtool $< > $@ @@ -51,7 +58,10 @@ RRDs.pm: RRDp.pm: ln -s ../bindings/perl-piped/RRDp.pm . -link: RRDp.pm RRDs.pm +index.html: + rm -f index.html; ln -s rrdtool.html index.html + +link: RRDp.pm RRDs.pm index.html man: $(MAN)