source: trunk/adm/makefile

Last change on this file was 205, checked in by pinsard, 10 years ago

website not any more hosted by LOCEAN

  • Property svn:executable set to *
  • Property svn:keywords set to Id URL
File size: 3.8 KB
Line 
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#
78PRODUCT = \
79tropflux
80
81PRODUCTNAME = \
82$$(echo $(PRODUCT) | tr [:lower:] [:upper:])
83
84SUBPRODUCT = \
85tropflux_ws
86
87DIRSRC = \
88../src/
89
90DIRADM = \
91./
92
93DIRTMP = \
94./
95
96DIRWWW_DEV = \
97../doc/
98
99DIRWWW_USER = \
100./website/_build/
101
102URLPUBLISH_DEV = \
103http://www.locean-ipsl.upmc.fr/~fplod/$(PRODUCT)/$(SUBPRODUCT)/doc/
104
105URLPUBLISH_USER = \
106http://www.locean-ipsl.upmc.fr/~tropflux
107
108.PHONY : \
109help \
110before \
111clean \
112cleantmp \
113design \
114htmllinkcheckb \
115htmllinkchecka \
116spellcheck \
117all \
118html \
119html_dev \
120html_user \
121pdf \
122pdf_dev \
123pdf_dev_sphinx
124
125help :
126        @echo "Prepare output directories :"
127        @echo "\$$ make before"
128        @echo ""
129        @echo "Following commands are available to build outputs :"
130        @echo "\$$ make all_dev"
131        @echo " "
132        @echo "Check links before installation : "
133        @echo "\$$ make htmllinkcheckb"
134        @echo " "
135        @echo "Last step = installation of HTML and pdf files"
136        @echo "\$$ make install_all"
137        @echo " "
138        @echo "Check links after installation : "
139        @echo "\$$ make htmllinkchecka"
140        @echo " "
141
142before :
143        @mkdir -p $(DIRWWW_DEV)/man/man1/
144
145install_all : \
146install_html_dev \
147install_html_user \
148install_pdf_dev
149
150install_html_dev :
151        @$(DIRADM)/install.sh -w $(DIRWWW_DEV)/html/ -u $(URLPUBLISH_DEV)/html/
152
153install_html_user :
154        @$(DIRADM)/install.sh -w $(DIRWWW_USER)/ -u $(URLPUBLISH_USER)/
155
156install_pdf_dev :
157        @$(DIRADM)/install.sh -w $(DIRWWW_DEV)/pdf/ -u $(URLPUBLISH_DEV)/pdf/
158
159clean : \
160cleantmp
161        -@rm -fr $(DIRWWW_DEV)/man/
162        -@rm -fr $(DIRWWW_DEV)/html/
163        -@rm -fr $(DIRWWW_DEV)/pdf/
164        cd ../docs/docs_dev/; make clean
165        cd $(DIRADM)/website/; make clean
166
167
168cleantmp :
169        -@rm -f $(DIRTMP)/sphinx_*.log
170
171htmllinkcheckb :
172        @$(DIRADM)/linkchecker.sh -d $(DIRWWW_DEV)/html/
173        @$(DIRADM)/linkchecker.sh -d $(DIRWWW_USER)
174
175htmllinkchecka :
176        @$(DIRADM)/linkchecker.sh -u $(URLPUBLISH_DEV)
177        @$(DIRADM)/linkchecker.sh -u $(URLPUBLISH_USER)
178
179spellcheck :
180        @++aspell --mode=sgml --master=english -c \
181        $(DIRSRC)/$(PRODUCT).xml
182
183all : \
184all_dev \
185all_user
186
187all_dev : \
188html_dev \
189pdf_dev \
190man_dev
191
192all_user : \
193html_user
194
195html : \
196html_user \
197html_dev
198
199html_user :
200        cd $(DIRADM)/website/; make html
201
202html_dev : \
203html_dev_sphinx \
204html_dev_sphinx_one
205
206html_dev_sphinx :
207        cd ../docs/docs_dev; make html
208
209html_dev_sphinx_one :
210        cd ../docs/docs_dev; make singlehtml
211
212pdf : \
213pdf_dev
214
215pdf_dev :
216        cd ../docs/docs_dev; make latexpdf
217
218man_dev :
219        cd ../docs/docs_dev; make man
Note: See TracBrowser for help on using the repository browser.