X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=1515f1817442512632a63a37198c65725a784178;hp=64a33ee6b3b0a8dbe2630a26eecdaa9f30e0185d;hb=b7c278771851b0dfad0daf1c817fbc93316ef96e;hpb=ffbbe12c9849a0750836c30fdb7306e83107dec4 diff --git a/doc/Makefile.am b/doc/Makefile.am index 64a33ee..1515f18 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,6 @@ ## 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 @@ -8,10 +8,13 @@ SUFFIXES = .pod .1 .man .html .txt .pm .pdf CLEANFILES = *.1 *.html *.txt *-dircache *.pm *.pdf *~ core *itemcache *.rej *.orig +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 + rrdcgi.pod rrdtutorial.pod rrdinfo.pod $(SRC:.src=.pod) PMP = RRDs.pm RRDp.pm @@ -33,6 +36,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 $< > $@