1 ## Process this file with automake to produce Makefile.in
3 SUFFIXES = .pod .1 .man .html .txt .pm .pdf .src .inc
5 #AUTOMAKE_OPTIONS = foreign
7 #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4
9 CLEANFILES = *.1 *.html *.txt *-dircache *.pm *.pdf *~ core *itemcache *.rej *.orig rrdgraph_*.pod *.tmp rrdgraph.pod
11 SRC = rrdgraph.src rrdgraph_examples.src rrdgraph_rpn.src \
12 rrdgraph_data.src rrdgraph_graph.src
14 PODOLD = rrdgraph-old.pod
16 POD = rrdtool.pod rrdlast.pod rrdfirst.pod rrdcreate.pod rrdupdate.pod rrdtutorial.es.pod \
17 cdeftutorial.pod rpntutorial.pod rrdthreads.pod bin_dec_hex.pod \
18 rrdfetch.pod rrdrestore.pod rrddump.pod rrdtune.pod rrdresize.pod \
19 rrdcgi.pod rrdtutorial.pod rrdinfo.pod rrdxport.pod rrd-beginners.pod \
24 MAN = $(POD:.pod=.1) $(PMP:.pm=.1)
26 HTML = $(POD:.pod=.html) $(PMP:.pm=.html)
29 # what should go into the distribution
30 EXTRA_DIST= $(POD) $(HTML) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd
33 idocdir = $(prefix)/doc
34 idoc_DATA = $(POD) $(TXT)
35 ihtmldir = $(prefix)/html
37 imandir = $(mandir)/man1
40 all-local: link txt man html-local
43 perl -n -e 'if (/^=include\s+(\S+)/){open F,"$$1.inc" || die $$?;print <F>; close F} else {print}' $< > $@
46 pod2man --release=$(VERSION) --center=rrdtool $< > $@
49 @NROFF@ -man -Tlp $< > $@
52 @TROFF@ -man $< | ps2pdf - $@
54 .pm.html .pod.html .pl.html:
55 pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
58 ln -s ../bindings/perl-shared/RRDs.pm .
61 ln -s ../bindings/perl-piped/RRDp.pm .
64 rm -f index.html; ln -s rrdtool.html index.html
66 link: RRDp.pm RRDs.pm index.html