X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2FMakefile.am;h=c176fad75d20387730ff8da76a2673f0e8773697;hb=7fec819b92653c39495d4f1018b6751d827a3a1c;hp=0fd7237ab0bc24acbf3de7235c39f36757a75aac;hpb=88e1ecf97bea280b442dc8240fbc0a5c5a608589;p=rrdtool.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 0fd7237..c176fad 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,36 +1,36 @@ ## Process this file with automake to produce Makefile.in -SUFFIXES = .pod .1 .man .html .txt .pm .pdf .src .inc +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 rrdgraph_*.pod *.tmp rrdgraph.pod +CLEANFILES = *.1 *.html *.txt *-dircache RRD?.pod *.pdf *~ core *itemcache *.rej *.orig *.tmp -SRC = rrdgraph.src rrdgraph_examples.src rrdgraph_rpn.src \ - rrdgraph_data.src rrdgraph_graph.src +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 \ + rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod -POD = rrdtool.pod rrdlast.pod rrdcreate.pod rrdupdate.pod rrdtutorial.es.pod \ - cdeftutorial.pod rpntutorial.pod rrdgraph-old.pod bin_dec_hex.pod \ - rrdfetch.pod rrdrestore.pod rrddump.pod rrdtune.pod rrdresize.pod \ - rrdxport.pod rrdcgi.pod rrdtutorial.pod rrdinfo.pod rrdthreads.pod \ - $(SRC:.src=.pod) -PMP = RRDs.pm RRDp.pm +PMP = RRDs.pod RRDp.pod -MAN = $(POD:.pod=.1) $(PMP:.pm=.1) +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 +# some install rules if the install pat +DOCPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null || echo "rrdtool-@VERSION@/") +idocdir = $(prefix)/share/doc/$(DOCPREFIX)txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/html +ihtmldir = $(prefix)/share/doc/$(DOCPREFIX)html ihtml_DATA = $(HTML) imandir = $(mandir)/man1 iman_DATA = $(MAN) @@ -44,7 +44,7 @@ all-local: link txt man html-local pod2man --release=$(VERSION) --center=rrdtool $< > $@ .1.txt: - @NROFF@ -man -Tlp $< > $@ + GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@ .1.pdf: @TROFF@ -man $< | ps2pdf - $@ @@ -52,16 +52,13 @@ all-local: link txt man html-local .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 -index.html: - rm -f index.html; ln -s rrdtool.html index.html - -link: RRDp.pm RRDs.pm index.html +link: RRDp.pod RRDs.pod man: $(MAN) @@ -71,3 +68,6 @@ txt: $(TXT) pdf-local: $(PDF) +pod: $(POD) + +