Code

Fixed ln for modules
[rrdtool.git] / doc / Makefile.am
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
16 PMP = RRDs.pm RRDp.pm
18 MAN = $(POD:.pod=.1) $(PMP:.pm=.1) 
19 TXT = $(MAN:.1=.txt)
20 HTML = $(POD:.pod=.html) $(PMP:.pm=.html) 
21 PDF = $(MAN:.1=.pdf)
23 # what should go into the distribution
24 EXTRA_DIST= $(POD) $(HTML) $(TXT)
26 # some install rules
27 idocdir = $(prefix)/doc
28 idoc_DATA = $(POD) $(TXT)
29 ihtmldir = $(prefix)/html
30 ihtml_DATA = $(HTML)
31 imandir = $(prefix)/man/man1
32 iman_DATA = $(MAN)
34 all-local: link txt man html
36 .pod.1 .pm.1 .pl.1:
37         pod2man --release=$(VERSION) --center=rrdtool $<  > $@
39 .1.txt:
40         @NROFF@ -man -Tlp $< > $@
42 .1.pdf:
43         @TROFF@ -man $< | ps2pdf - $@
45 .pm.html .pod.html .pl.html:
46         pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
48 RRDs.pm:
49         ln -s ../bindings/perl-shared/RRDs.pm .
51 RRDp.pm:
52         ln -s ../bindings/perl-piped/RRDp.pm .
54 link: RRDp.pm RRDs.pm
56 man: $(MAN)
58 html: $(HTML)
60 txt: $(TXT)
62 pdf: $(PDF)