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