X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2FMakefile.am;h=3074b613c72487deca38dfb6b82c43075cacd01b;hb=c2588300e3b61df51b846dd79d90b3da9628d0cb;hp=64a33ee6b3b0a8dbe2630a26eecdaa9f30e0185d;hpb=73e35fca20119bca0018ef62dda0c4c67d850220;p=rrdtool.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 64a33ee..3074b61 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,37 +1,46 @@ ## 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 *.tmp rrdgraph.pod + +SRC = rrdgraph.src rrdgraph_examples.src rrdgraph_rpn.src \ + rrdgraph_data.src rrdgraph_graph.src + +PODOLD = rrdgraph-old.pod 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 rrdthreads.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 rrdxport.pod rrd-beginners.pod \ + $(SRC:.src=.pod) PMP = RRDs.pm RRDp.pm -MAN = $(POD:.pod=.1) $(PMP:.pm=.1) +MAN = $(POD:.pod=.1) $(PMP:.pm=.1) TXT = $(MAN:.1=.txt) -HTML = $(POD:.pod=.html) $(PMP:.pm=.html) +HTML = $(POD:.pod=.html) $(PMP:.pm=.html) PDF = $(MAN:.1=.pdf) # what should go into the distribution -EXTRA_DIST= $(POD) $(HTML) $(TXT) +EXTRA_DIST= $(POD) $(HTML) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd # some install rules idocdir = $(prefix)/doc idoc_DATA = $(POD) $(TXT) ihtmldir = $(prefix)/html ihtml_DATA = $(HTML) -imandir = $(prefix)/man/man1 +imandir = $(mandir)/man1 iman_DATA = $(MAN) -all-local: link txt man html +all-local: link txt man html-local + +.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,13 +60,16 @@ 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) -html: $(HTML) +html-local: $(HTML) txt: $(TXT) -pdf: $(PDF) +pdf-local: $(PDF)