1 ## Process this file with automake to produce Makefile.in
3 SUFFIXES = .pod .1 .man .html .txt .pm .pdf
5 #AUTOMAKE_OPTIONS = foreign
7 #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4
9 CLEANFILES = *.1 *.html *.txt *-dircache *.pm *.pdf *~ core *itemcache *.rej *.orig
11 POD = rrdtool.pod rrdlast.pod rrdcreate.pod rrdupdate.pod rrdtutorial.es.pod \
12 cdeftutorial.pod rpntutorial.pod rrdgraph.pod bin_dec_hex.pod \
13 rrdfetch.pod rrdrestore.pod rrddump.pod rrdtune.pod rrdresize.pod \
14 rrdcgi.pod rrdtutorial.pod rrdinfo.pod
18 MAN = $(POD:.pod=.1) $(PMP:.pm=.1)
20 HTML = $(POD:.pod=.html) $(PMP:.pm=.html)
23 # what should go into the distribution
24 EXTRA_DIST= $(POD) $(HTML) $(TXT)
27 idocdir = $(prefix)/doc
28 idoc_DATA = $(POD) $(TXT)
29 ihtmldir = $(prefix)/html
31 imandir = $(prefix)/man/man1
34 all-local: link txt man html
37 pod2man --release=$(VERSION) --center=rrdtool $< > $@
40 @NROFF@ -man -Tlp $< > $@
43 @TROFF@ -man $< | ps2pdf - $@
45 .pm.html .pod.html .pl.html:
46 pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
49 ln -s ../bindings/perl-shared/RRDs.pm .
52 ln -s ../bindings/perl-piped/RRDp.pm .