1 | #+ |
---|
2 | # |
---|
3 | # .. _makefile: |
---|
4 | # |
---|
5 | # ======== |
---|
6 | # makefile |
---|
7 | # ======== |
---|
8 | # |
---|
9 | # surcouche génération des documentations tropflux |
---|
10 | # |
---|
11 | # SEE ALSO |
---|
12 | # ======== |
---|
13 | # |
---|
14 | # :ref:`build_doc` |
---|
15 | # |
---|
16 | # TODO |
---|
17 | # ==== |
---|
18 | # |
---|
19 | # usage of sphinx/source/Makefile |
---|
20 | # |
---|
21 | # EVOLUTIONS |
---|
22 | # ========== |
---|
23 | # |
---|
24 | # $Id$ |
---|
25 | # |
---|
26 | # $URL$ |
---|
27 | # |
---|
28 | # - fplod 20120306 |
---|
29 | # |
---|
30 | # * remove features which are now in makefile_non_sphinx and docs/docs_dev |
---|
31 | # * remove doxygen stuff |
---|
32 | # |
---|
33 | # - fplod 20110628T140016Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
34 | # |
---|
35 | # * correction according to build_doc.rst |
---|
36 | # |
---|
37 | # - fplod 20110421T160731Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
38 | # |
---|
39 | # * correction for pdf_user |
---|
40 | # |
---|
41 | # - fplod 20110411T160342Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
42 | # |
---|
43 | # * handle paper01/fig*/*.pro (quite ugly !!) |
---|
44 | # |
---|
45 | # - fplod 20110401T091241Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
46 | # |
---|
47 | # * replace URLPUBLISH by URLPUBLISH_DEV |
---|
48 | # * replace DIRWWW by DIRWWW_DEV |
---|
49 | # * add URLPUBLISH_USER and DIRWWW_USER to handle website |
---|
50 | # |
---|
51 | # - fplod 20110203T101853Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
52 | # |
---|
53 | # * add cdo inventory file for sphinx intermapping |
---|
54 | # |
---|
55 | # - fplod 20110110T165518Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
56 | # |
---|
57 | # * add odv files |
---|
58 | # |
---|
59 | # - fplod 20110106T135021Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
60 | # |
---|
61 | # * add matlab, ferret files |
---|
62 | # |
---|
63 | # - fplod 20101223T083725Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
64 | # |
---|
65 | # * add nco inventory file for sphinx intermapping |
---|
66 | # |
---|
67 | # - fplod 20101220T092552Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
68 | # |
---|
69 | # * add saxo inventory file for sphinx intermapping |
---|
70 | # |
---|
71 | # - fplod 20101118T165524Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
72 | # |
---|
73 | # * creation |
---|
74 | # |
---|
75 | # |
---|
76 | #- |
---|
77 | # |
---|
78 | PRODUCT = \ |
---|
79 | tropflux |
---|
80 | |
---|
81 | PRODUCTNAME = \ |
---|
82 | $$(echo $(PRODUCT) | tr [:lower:] [:upper:]) |
---|
83 | |
---|
84 | SUBPRODUCT = \ |
---|
85 | tropflux_ws |
---|
86 | |
---|
87 | DIRSRC = \ |
---|
88 | ../src/ |
---|
89 | |
---|
90 | DIRADM = \ |
---|
91 | ./ |
---|
92 | |
---|
93 | DIRTMP = \ |
---|
94 | ./ |
---|
95 | |
---|
96 | DIRWWW_DEV = \ |
---|
97 | ../doc/ |
---|
98 | |
---|
99 | DIRWWW_USER = \ |
---|
100 | ./website/_build/ |
---|
101 | |
---|
102 | URLPUBLISH_DEV = \ |
---|
103 | http://www.locean-ipsl.upmc.fr/~fplod/$(PRODUCT)/$(SUBPRODUCT)/doc/ |
---|
104 | |
---|
105 | URLPUBLISH_USER = \ |
---|
106 | http://www.locean-ipsl.upmc.fr/~tropflux |
---|
107 | |
---|
108 | .PHONY : \ |
---|
109 | help \ |
---|
110 | before \ |
---|
111 | clean \ |
---|
112 | cleantmp \ |
---|
113 | design \ |
---|
114 | htmllinkcheckb \ |
---|
115 | htmllinkchecka \ |
---|
116 | spellcheck \ |
---|
117 | all \ |
---|
118 | html \ |
---|
119 | html_dev \ |
---|
120 | html_user \ |
---|
121 | pdf \ |
---|
122 | pdf_dev \ |
---|
123 | pdf_dev_sphinx \ |
---|
124 | pdf_user |
---|
125 | |
---|
126 | help : |
---|
127 | @echo "Prepare output directories :" |
---|
128 | @echo "\$$ make before" |
---|
129 | @echo "" |
---|
130 | @echo "Following commands are available to build outputs :" |
---|
131 | @echo "\$$ make all_dev" |
---|
132 | @echo " " |
---|
133 | @echo "Check links before installation : " |
---|
134 | @echo "\$$ make htmllinkcheckb" |
---|
135 | @echo " " |
---|
136 | @echo "Last step = installation of HTML and pdf files" |
---|
137 | @echo "\$$ make install_all" |
---|
138 | @echo " " |
---|
139 | @echo "Check links after installation : " |
---|
140 | @echo "\$$ make htmllinkchecka" |
---|
141 | @echo " " |
---|
142 | |
---|
143 | before : |
---|
144 | @mkdir -p $(DIRWWW_DEV)/man/man1/ |
---|
145 | |
---|
146 | install_all : \ |
---|
147 | install_html_dev \ |
---|
148 | install_html_user \ |
---|
149 | install_pdf_dev \ |
---|
150 | install_pdf_user |
---|
151 | |
---|
152 | install_html_dev : |
---|
153 | @$(DIRADM)/install.sh -w $(DIRWWW_DEV)/html/ -u $(URLPUBLISH_DEV)/html/ |
---|
154 | |
---|
155 | install_html_user : |
---|
156 | @$(DIRADM)/install.sh -w $(DIRWWW_USER)/ -u $(URLPUBLISH_USER)/ |
---|
157 | |
---|
158 | install_pdf_dev : |
---|
159 | @$(DIRADM)/install.sh -w $(DIRWWW_DEV)/pdf/ -u $(URLPUBLISH_DEV)/pdf/ |
---|
160 | |
---|
161 | install_pdf_user : |
---|
162 | @$(DIRADM)/install.sh -w $(DIRWWW_USER)/pdf/ -u $(URLPUBLISH_USER)/pdf/ |
---|
163 | |
---|
164 | clean : \ |
---|
165 | cleantmp |
---|
166 | -@rm -fr $(DIRWWW_DEV)/man/ |
---|
167 | -@rm -fr $(DIRWWW_DEV)/html/ |
---|
168 | -@rm -fr $(DIRWWW_DEV)/pdf/ |
---|
169 | cd ../docs/docs_dev/; make clean |
---|
170 | cd $(DIRADM)/website/; make clean |
---|
171 | |
---|
172 | |
---|
173 | cleantmp : |
---|
174 | -@rm -f $(DIRTMP)/sphinx_*.log |
---|
175 | |
---|
176 | htmllinkcheckb : |
---|
177 | @$(DIRADM)/linkchecker.sh -d $(DIRWWW_DEV)/html/ |
---|
178 | @$(DIRADM)/linkchecker.sh -d $(DIRWWW_USER) |
---|
179 | |
---|
180 | htmllinkchecka : |
---|
181 | @$(DIRADM)/linkchecker.sh -u $(URLPUBLISH_DEV) |
---|
182 | @$(DIRADM)/linkchecker.sh -u $(URLPUBLISH_USER) |
---|
183 | |
---|
184 | spellcheck : |
---|
185 | @++aspell --mode=sgml --master=english -c \ |
---|
186 | $(DIRSRC)/$(PRODUCT).xml |
---|
187 | |
---|
188 | all : \ |
---|
189 | all_dev \ |
---|
190 | all_user |
---|
191 | |
---|
192 | all_dev : \ |
---|
193 | html_dev \ |
---|
194 | pdf_dev \ |
---|
195 | man_dev |
---|
196 | |
---|
197 | all_user : \ |
---|
198 | html_user \ |
---|
199 | pdf_user |
---|
200 | |
---|
201 | html : \ |
---|
202 | html_user \ |
---|
203 | html_dev |
---|
204 | |
---|
205 | html_user : |
---|
206 | cd $(DIRADM)/website/; make html |
---|
207 | |
---|
208 | html_dev : \ |
---|
209 | html_dev_sphinx \ |
---|
210 | html_dev_sphinx_one |
---|
211 | |
---|
212 | html_dev_sphinx : |
---|
213 | cd ../docs/docs_dev; make html |
---|
214 | |
---|
215 | html_dev_sphinx_one : |
---|
216 | cd ../docs/docs_dev; make singlehtml |
---|
217 | |
---|
218 | pdf : \ |
---|
219 | pdf_user \ |
---|
220 | pdf_dev |
---|
221 | |
---|
222 | pdf_user : |
---|
223 | cd $(DIRADM)/website/; make latexpdf |
---|
224 | |
---|
225 | pdf_dev : |
---|
226 | cd ../docs/docs_dev; make latexpdf |
---|
227 | |
---|
228 | man_dev : |
---|
229 | cd ../docs/docs_dev; make man |
---|