X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=4af8d7b02a15a67181e9dba64eaf9cc2490bba9f;hp=189c5c5e9e880bc62c9951b9bd94aeba76bbefac;hb=d4d67c5fdf35d76f9c95532acfce632a6213ac1d;hpb=1ed31d581dfed23377a61d4df88bb9c2b9b2c94b diff --git a/doc/Makefile.am b/doc/Makefile.am index 189c5c5..4af8d7b 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,8 +1,8 @@ ## Process this file with automake to produce Makefile.in -SUFFIXES = .pod .1 .man .html .txt .pm .pdf .inc +SUFFIXES = .pod .pl .1 .man .html .txt .pm .pdf .inc -#AUTOMAKE_OPTIONS = foreign +AUTOMAKE_OPTIONS = foreign #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4 @@ -10,11 +10,18 @@ CLEANFILES = *.1 *.html *.txt *-dircache RRD?.pod *.pdf *~ core *itemcache *.rej 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 \ - rrdcgi.pod rrdgraph.pod rrdlast.pod \ - rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.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 +if BUILD_LIBDBI + POD += rrdgraph_libdbi.pod +endif + +if BUILD_LUA + POD += rrdlua.pod +endif PMP = RRDs.pod RRDp.pod @@ -24,12 +31,11 @@ HTML = $(POD:.pod=.html) $(PMP:.pod=.html) PDF = $(MAN:.1=.pdf) # what should go into the distribution -EXTRA_DIST= $(POD) $(HTML) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd +EXTRA_DIST= $(POD) $(HTML) $(MAN) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd rrdgraph_libdbi.pod rrdlua.pod -# some install rules -idocdir = $(prefix)/doc +idocdir = $(RRDDOCDIR)/txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/html +ihtmldir = $(RRDDOCDIR)/html ihtml_DATA = $(HTML) imandir = $(mandir)/man1 iman_DATA = $(MAN) @@ -40,27 +46,24 @@ all-local: link txt man html-local 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 $< > $@ + $(AM_V_GEN)@POD2MAN@ --release=$(VERSION) --center=rrdtool $< > $@ .1.txt: - @NROFF@ -man -Tlp $< > $@ + $(AM_V_GEN)GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@ .1.pdf: - @TROFF@ -man $< | ps2pdf - $@ + $(AM_V_GEN)@TROFF@ -man $< | ps2pdf - $@ .pm.html .pod.html .pl.html: - pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$* + $(AM_V_GEN)@POD2HTML@ --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$* RRDs.pod: - ln -s ../bindings/perl-shared/RRDs.pm RRDs.pod + $(AM_V_GEN)$(LN_S) $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod RRDp.pod: - ln -s ../bindings/perl-piped/RRDp.pm RRDp.pod - -index.html: - rm -f index.html; ln -s rrdtool.html index.html + $(AM_V_GEN)$(LN_S) $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod -link: RRDp.pod RRDs.pod index.html +link: RRDp.pod RRDs.pod man: $(MAN) @@ -71,3 +74,6 @@ txt: $(TXT) pdf-local: $(PDF) pod: $(POD) + +install-data-hook: + $(AM_V_GEN)cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html