X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2FMakefile.am;h=70f456c2a5a4f82db60c62dc601f06fc2a1e4c6b;hb=65878d5b2342b37186d9557f314e8a37dbc86de2;hp=64a33ee6b3b0a8dbe2630a26eecdaa9f30e0185d;hpb=73e35fca20119bca0018ef62dda0c4c67d850220;p=rrdtool.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 64a33ee..70f456c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,43 +1,48 @@ ## 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 .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 RRD?.pod *.pdf *~ core *itemcache *.rej *.orig *.tmp -POD = rrdtool.pod rrdlast.pod rrdcreate.pod rrdupdate.pod rrdtutorial.es.pod \ - cdeftutorial.pod rpntutorial.pod rrdgraph.pod bin_dec_hex.pod \ - rrdfetch.pod rrdrestore.pod rrddump.pod rrdtune.pod rrdresize.pod \ - rrdcgi.pod rrdtutorial.pod rrdinfo.pod +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 \ + rrd-beginners.pod rrdinfo.pod rrdtune.pod rrdbuild.pod \ + rrdcgi.pod rrdgraph.pod rrdlast.pod rrdlastupdate.pod \ + rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod -PMP = RRDs.pm RRDp.pm -MAN = $(POD:.pod=.1) $(PMP:.pm=.1) +PMP = RRDs.pod RRDp.pod + +MAN = $(POD:.pod=.1) TXT = $(MAN:.1=.txt) -HTML = $(POD:.pod=.html) $(PMP:.pm=.html) +HTML = $(POD:.pod=.html) $(PMP:.pod=.html) PDF = $(MAN:.1=.pdf) # what should go into the distribution -EXTRA_DIST= $(POD) $(HTML) $(TXT) +EXTRA_DIST= $(POD) $(HTML) $(MAN) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd -# some install rules -idocdir = $(prefix)/doc +idocdir = $(RRDDOCDIR)/txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/html +ihtmldir = $(RRDDOCDIR)/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 $< > $@ .1.txt: - @NROFF@ -man -Tlp $< > $@ + GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@ .1.pdf: @TROFF@ -man $< | ps2pdf - $@ @@ -45,19 +50,23 @@ all-local: link txt man html .pm.html .pod.html .pl.html: pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$* -RRDs.pm: - ln -s ../bindings/perl-shared/RRDs.pm . +RRDs.pod: + $(LN_S) $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod -RRDp.pm: - ln -s ../bindings/perl-piped/RRDp.pm . +RRDp.pod: + $(LN_S) $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod -link: RRDp.pm RRDs.pm +link: RRDp.pod RRDs.pod man: $(MAN) -html: $(HTML) +html-local: $(HTML) txt: $(TXT) -pdf: $(PDF) +pdf-local: $(PDF) + +pod: $(POD) +install-data-hook: + cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html