File: Makefile.am

package info (click to toggle)
quantlib 0.9.0.20071224-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 22,216 kB
  • ctags: 34,951
  • sloc: cpp: 167,744; ansic: 21,483; sh: 8,947; makefile: 3,327; lisp: 86
file content (162 lines) | stat: -rw-r--r-- 5,305 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162

EXTRA_DIST = \
             quantlib.doxy \
             quantlib.css \
             print.css \
             quantlibfooter.html \
             quantlibheader.html \
             quantlibheaderonline.html \
             qlintro.tex \
             quantlibheader.tex \
             README.txt

DOXYGEN_CONFIG := quantlib.doxy
DOXYGEN_CUSTOM := qlintro.tex quantlibheader.tex \
                  quantlib.css print.css \
                  quantlibheader.html quantlibfooter.html
DOXYGEN_INPUT := $(shell find ${top_srcdir} -name *.hpp) \
                 $(wildcard pages/*.docs)

%.gz: %
	rm -f $@
	gzip --best $<
%.tar: %
	tar chf $@ $<
	rm $<

.PHONY: docs-all docs-ps docs-pdf docs-html docs-man docs-online docs-clean
.PHONY: docs-dist docs-ps-dist docs-pdf-dist docs-html-dist docs-man-dist

dist-hook:
	mkdir -p $(distdir)/pages $(distdir)/Examples $(distdir)/images
	cp -p $(srcdir)/pages/*.docs $(distdir)/pages
	cp -p $(srcdir)/Examples/*.cpp $(distdir)/Examples
	cp -p $(srcdir)/images/*.bmp $(srcdir)/images/*.eps \
	      $(srcdir)/images/*.jpg $(srcdir)/images/*.png \
	      $(srcdir)/images/*.pdf $(srcdir)/images/*.ico $(distdir)/images

docs-all: docs-html docs-man
docs-dist: docs-html-dist docs-man-dist

docs-html: .time-stamp-html
.time-stamp-html: .time-stamp
	cp -f print.css html
	cp -f images/*.jpg html
	cp -f images/*.png html
	cp -f images/*.ico html
	touch .time-stamp-html

docs-html-dist: docs-html
	ln -s html QuantLib-docs-$(VERSION)-html
	tar chf - QuantLib-docs-$(VERSION)-html \
	    | GZIP=--best gzip -c > QuantLib-docs-$(VERSION)-html.tar.gz
	rm QuantLib-docs-$(VERSION)-html

docs-online: .time-stamp-online
.time-stamp-online: $(DOXYGEN_CONFIG) $(DOXYGEN_CUSTOM) $(DOXYGEN_INPUT)
	$(SED) -e "s/quantlibheader\.html/quantlibheaderonline\.html/" \
           -e "s/GENERATE_HTML          = NO/GENERATE_HTML          = YES/" \
           -e "s/SEARCHENGINE           = NO/SEARCHENGINE           = YES/" \
           -e "s/HTML_OUTPUT            = html/HTML_OUTPUT            = html-online/" \
           -e "s|ql_basepath|${BASEPATH}/|" \
           -e "s|ql_version|$(VERSION)|" \
	       quantlib.doxy > .quantlib.doxy
	$(DOXYGEN) .quantlib.doxy
	rm .quantlib.doxy
	cp -f images/*.jpg html-online
	cp -f images/*.png html-online
	cp -f images/*.ico html-online
	touch .time-stamp-online

docs-pdf: .time-stamp-pdf
.time-stamp-pdf: .time-stamp .time-stamp-tex
	cd latex && $(PDFLATEX) refman
	cd latex && $(MAKEINDEX) refman
	cd latex && $(PDFLATEX) refman
	touch .time-stamp-pdf

docs-pdf-dist: docs-pdf
	ln latex/refman.pdf QuantLib-docs-$(VERSION).pdf
	gzip --best --force QuantLib-docs-$(VERSION).pdf

docs-ps: .time-stamp-ps
.time-stamp-ps: .time-stamp .time-stamp-tex
	cd latex && $(LATEX) refman
	cd latex && $(MAKEINDEX) refman
	cd latex && $(LATEX) refman
	cd latex && $(DVIPS) -o refman.ps refman
	touch .time-stamp-ps

docs-ps-dist: docs-ps
	ln latex/refman.ps QuantLib-docs-$(VERSION).ps
	gzip --best --force QuantLib-docs-$(VERSION).ps

docs-man: .time-stamp-man
.time-stamp-man: .time-stamp
	$(SED) -e "s/index/QuantLib/" man/man3/index.3 > man/man3/QuantLib.3
	rm man/man3/index.3
	touch .time-stamp-man

docs-man-dist: docs-man
	ln -s man QuantLib-docs-$(VERSION)-man
	tar chf - QuantLib-docs-$(VERSION)-man \
	    | GZIP=--best gzip -c > QuantLib-docs-$(VERSION)-man.tar.gz
	rm QuantLib-docs-$(VERSION)-man


docs-clean:
	rm -Rf man
	rm -Rf html-online html
	rm -Rf latex
	rm -f .time-stamp*


.time-stamp: $(DOXYGEN_CONFIG) $(DOXYGEN_CUSTOM) $(DOXYGEN_INPUT)
	$(SED) -e "s/GENERATE_MAN           = NO/GENERATE_MAN           = YES/" \
           -e "s/GENERATE_HTML          = NO/GENERATE_HTML          = YES/" \
           -e "s/GENERATE_LATEX         = NO/GENERATE_LATEX         = YES/" \
           -e "s|ql_basepath|${BASEPATH}/|" \
           -e "s|ql_version|$(VERSION)|" \
	       quantlib.doxy > .quantlib.doxy
	$(DOXYGEN) .quantlib.doxy
	rm .quantlib.doxy
	touch .time-stamp

tex-files: .time-stamp-tex
.time-stamp-tex: .time-stamp
	cp -f qlintro.tex latex
	cp -f images/*.eps latex
	cp -f images/*.pdf latex
	mv latex/refman.tex .refman.tex
	$(SED) -e "/Page Index/d" \
           -e "/input{pages}/d" \
           -e "/Page Documentation/d" \
           -e "/include{config}/d" \
           -e "/input{group}/d" \
           -e "/include{history}/d" \
           -e "/include{index}/d" \
           -e "/include{install}/d" \
           -e "/include{license}/d" \
           -e "/include{overview}/d" \
           -e "/include{resources}/d" \
           -e "/include{usage}/d" \
           -e "/include{where}/d" \
           -e "s/ple Documentation}/ple Documentation}\\\\label{exchap}/" \
	       .refman.tex > latex/refman.tex
	rm -f .refman.tex
	mv latex/deprecated.tex .deprecated.tex
	$(SED) -e "s/section/chapter/" .deprecated.tex > latex/deprecated.tex
	rm -f .deprecated.tex
	mv latex/bug.tex .bug.tex
	$(SED) -e "s/section/chapter/" .bug.tex > latex/bug.tex
	rm -f .bug.tex
	mv latex/caveats.tex .caveats.tex
	$(SED) -e "s/section/chapter/" .caveats.tex > latex/caveats.tex
	rm -f .caveats.tex
	mv latex/test.tex .test.tex
	$(SED) -e "s/section/chapter/" .test.tex > latex/test.tex
	rm -f .test.tex
	mv latex/todo.tex .todo.tex
	$(SED) -e "s/section/chapter/" .todo.tex > latex/todo.tex
	rm -f .todo.tex
	touch .time-stamp-tex