File: Makefile.am

package info (click to toggle)
rrdtool 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,772 kB
  • sloc: ansic: 39,371; sh: 1,810; perl: 1,268; cs: 652; makefile: 573; python: 169; ruby: 61; awk: 30
file content (101 lines) | stat: -rw-r--r-- 2,927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
## Process this file with automake to produce Makefile.in

SUFFIXES = .pod .pl .1 .3 .man .html .txt .pm .pdf .inc

AUTOMAKE_OPTIONS        =  foreign

#ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4

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            rrdcached.pod  \
      rrd-beginners.pod      rrdinfo.pod            rrdtune.pod            rrdbuild.pod           rrdflushcached.pod   \
      rrdcgi.pod             rrdgraph.pod           rrdlast.pod            rrdlastupdate.pod      rrdcreate.pod  \
      rrdgraph_data.pod      rrdresize.pod          rrdtutorial.pod        rrd_pdpcalc.pod        rrdlist.pod

if BUILD_LIBDBI
  POD += rrdgraph_libdbi.pod
endif

if BUILD_LIBRADOS
  POD += rrdrados.pod
endif

if BUILD_LUA
  POD += rrdlua.pod
endif

if BUILD_PYTHON
  POD += rrdpython.pod
endif

if BUILD_RUBY
  POD += rrdruby.pod
endif

POD3 = librrd.pod

PMP = RRDs.pod RRDp.pod

MAN = $(POD:.pod=.1)
MAN3 = $(POD3:.pod=.3)
TXT = $(MAN:.1=.txt) $(MAN3:.3=.txt)
HTML = $(POD:.pod=.html) $(POD3:.pod=.html) $(PMP:.pod=.html)
PDF = $(MAN:.1=.pdf) $(MAN3:.3=.pdf)

GENERATED_EXTRADIST = $(HTML) $(MAN) $(MAN3) $(TXT) $(PMP) $(PDF)
CLEANFILES = $(GENERATED_EXTRADIST) pod2htm*.tmp

# what should go into the distribution
EXTRA_DIST= $(GENERATED_EXTRADIST) $(POD) $(POD3) rrdtool-dump.dtd rrdtool-xport.dtd rrdgraph_libdbi.pod rrdlua.pod \
            rrdpython.pod rrdrados.pod rrdruby.pod

idocdir = $(RRDDOCDIR)/txt
idoc_DATA = $(POD) $(TXT)
ihtmldir = $(RRDDOCDIR)/html
ihtml_DATA = $(HTML)
imandir = $(mandir)/man1
iman_DATA = $(MAN)
iman3dir = $(mandir)/man3
iman3_DATA = $(MAN3)

all-local: link man txt html-local

.src.pod:
	perl -n -e 'if (/^=include\s+(\S+)/){open F,"$$1.inc" || die $$?;print <F>; close F} else {print}'  $<  > $@

.pod.1 .pm.1 .pl.1:
	$(AM_V_GEN)@POD2MAN@ --release=$(VERSION) --center=rrdtool --utf8 $< | sed -e $$'s|\u200B|\\\\:|g' > $@

.pod.3:
	$(AM_V_GEN)@POD2MAN@ --release=$(VERSION) --center=rrdtool --section=3 --utf8 $< | sed -e $$'s|\u200B|\\\\:|g' > $@

.1.txt .3.txt:
	$(AM_V_GEN)GROFF_NO_SGR=1 @NROFF@ -man -Tlp -Wbreak $< > $@

.1.pdf .3.pdf:
	$(AM_V_GEN)@TROFF@ -man $< | ps2pdf - $@

.pm.html .pod.html .pl.html:
	$(AM_V_GEN)@POD2HTML@ --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*

RRDs.pod:
	$(AM_V_GEN)$(LN_S) $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod

RRDp.pod:
	$(AM_V_GEN)$(LN_S) $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod

link: RRDp.pod RRDs.pod

man: $(MAN) $(MAN3)

html-local: $(HTML)

txt: $(TXT)

pdf-local: $(PDF)

pod: $(POD) $(POD3)

install-data-hook:
	$(AM_V_GEN)cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html