source: trunk/adm/makefile @ 503

Last change on this file since 503 was 503, checked in by pinsard, 12 years ago

for doc

  • Property svn:executable set to *
  • Property svn:keyword set to Id
  • Property svn:keywords set to Id
File size: 16.8 KB
Line 
1#+
2#
3# .. _makefile:
4#
5# ========
6# makefile
7# ========
8#
9# administration of project varamma
10#
11# TODO
12# ====
13#
14# autodoc not ok may be see  autodoc-process-docstring
15#
16# sort pb within index_manuals for matlab scripts because severals
17# directories. and for probably the same reason no next/previous
18# continuation
19#
20# add -W to sphinx command when encoding problems are solved
21#
22# usage of sphinx/source/Makefile
23#
24# IDL and matlab in man_troff
25#
26# saxo inventory file should be provide by SAXO itself
27#
28# remove "-" before extract_demandandtest.sh : It is known now (20110303)
29# that all demo and test are not ready but they should be at least on per
30# file.
31#
32# find a way to order tests : now alphanumeric order (non-sens)
33#
34# EVOLUTIONS
35# ==========
36#
37# $Id$
38#
39# $URL$
40#
41# - fplod 20110907T122710Z aedon.locean-ipsl.upmc.fr (Darwin)
42#
43#   * add PYTHON modules
44#
45# - fplod 20110801T121321Z aedon.locean-ipsl.upmc.fr (Darwin)
46#
47#   * try to handle src/external_matlab files
48#   * utilitaires in index_manuals.html and externals in index_manuals.html
49#
50# - fplod 20110705T143721Z cratos.locean-ipsl.upmc.fr (Linux)
51#
52#   * automatic MATLAB files list generation
53#
54# - fplod 20110629T104952Z aedon.locean-ipsl.upmc.fr (Darwin)
55#
56#   * add *zi*.m
57#
58# - fplod 20110623T080811Z aedon.locean-ipsl.upmc.fr (Darwin)
59#
60#   * add recup_camp.m
61#
62# - fplod 20110608T155243Z aedon.locean-ipsl.upmc.fr (Darwin)
63#
64#   * add visuTRMMread
65#
66# - fplod 20110606T163523Z cratos.locean-ipsl.upmc.fr (Linux)
67#
68#   * add TRMMread.m
69#
70# - fplod 20110520T095114Z aedon.locean-ipsl.upmc.fr (Darwin)
71#
72#   * add MATLAB files from Jason
73#
74# - fplod 20110504T104228Z aedon.locean-ipsl.upmc.fr (Darwin)
75#
76#   * add split_yyyymmdd.m
77#
78# - fplod 20110310T081721Z aedon.locean-ipsl.upmc.fr (Darwin)
79#
80#   * add plot_cumulEPSAT.m
81#
82# - fplod 20110304T081919Z aedon.locean-ipsl.upmc.fr (Darwin)
83#
84#   * add jaclod matlab files for manuals
85#
86# - fplod 20110302T164552Z aedon.locean-ipsl.upmc.fr (Darwin)
87#
88#   * add demo and test matlab generation (see matlab_demo)
89#
90# - fplod 20110223T170451Z aedon.locean-ipsl.upmc.fr (Darwin)
91#
92#   * add define_area.m
93#
94# - fplod 20110223T102335Z aedon.locean-ipsl.upmc.fr (Darwin)
95#
96#   * add geolocation_to_string.m
97#
98# - fplod 20110221T143016Z aedon.locean-ipsl.upmc.fr (Darwin)
99#
100#   * add get_station_geolocation.m
101#
102# - fplod 20110216T093157Z aedon.locean-ipsl.upmc.fr (Darwin)
103#
104#   * add write_station.m, read_station.m
105#
106# - fplod 20110215T171407Z aedon.locean-ipsl.upmc.fr (Darwin)
107#
108#   * add simul_station.m, plot_station.m
109#
110# - fplod 20110202T131517Z aedon.locean-ipsl.upmc.fr (Darwin)
111#
112#   * add sigmoide.m
113#
114# - fplod 20110124T155056Z aedon.locean-ipsl.upmc.fr (Darwin)
115#
116#   * add matlab sources
117#   * alphabetic sort of matlab sources
118#
119# - fplod 20110121T135924Z aedon.locean-ipsl.upmc.fr (Darwin)
120#
121#   * add selectionimages.m
122#
123# - fplod 20110112T170718Z aedon.locean-ipsl.upmc.fr (Darwin)
124#
125#   * add read_precip.m, simul_precip.m, write_precip.m
126#
127# - fplod 20101217T164640Z aedon.locean-ipsl.upmc.fr (Darwin)
128#
129#   * add saxo inventory file for sphinx intermapping
130#
131# - fplod 20100923T163256Z aedon.locean-ipsl.upmc.fr (Darwin)
132#
133#   * add some _2d lai matlab functions
134#
135# - fplod 20100910T140951Z aedon.locean-ipsl.upmc.fr (Darwin)
136#
137#   * try to improve dependencies
138#   * clean useless macros
139#
140# - fplod 20100901T133236Z aedon.locean-ipsl.upmc.fr (Darwin)
141#
142#   * add showgrid_lai.m
143#
144# - fplod 20100902T095800Z aedon.locean-ipsl.upmc.fr (Darwin)
145#
146#   * add svn Id
147#
148# - fplod 20100813T073911Z aedon.locean-ipsl.upmc.fr (Darwin)
149#
150#   * join manuals and guide
151#
152# - fplod 20100810T153307Z aedon.locean-ipsl.upmc.fr (Darwin)
153#
154#   * add h_clim.m hspe2rmix.m tpot.m extract_nc.m
155#
156# - fplod 20100720T161032Z aedon.locean-ipsl.upmc.fr (Darwin)
157#
158#   * add precipPlot.m
159#
160# - fplod 20100713T105326Z aedon.locean-ipsl.upmc.fr (Darwin)
161#
162#   * add cal_hcl.m
163#
164# - fplod 20100712T140824Z aedon.locean-ipsl.upmc.fr (Darwin)
165#
166#   * add installation of src_browser output
167#
168# - fplod 20100701T135309Z aedon.locean-ipsl.upmc.fr (Darwin)
169#
170#   * automatic IDL files list generation
171#
172# - fplod 20100630T103108Z aedon.locean-ipsl.upmc.fr (Darwin)
173#
174#   * add Ferret scripts in manuals
175#
176# - fplod 20100629T122548Z aedon.locean-ipsl.upmc.fr (Darwin)
177#
178#   * sphinx 1.0b2 used for troff production aswell
179#
180# - fplod 20100618T144320Z aedon.locean-ipsl.upmc.fr (Darwin)
181#
182#   * remove most of docutils
183#   * singlehtml with sphinx
184#
185# - fplod 20100608T154236Z aedon.locean-ipsl.upmc.fr (Darwin)
186#
187#   * suppress docutils usage in "all" target
188#
189# - fplod 20100521T141052Z aedon.locean-ipsl.upmc.fr (Darwin)
190#
191#   * add MATLAB
192#
193# - fplod 20100325T094005Z aedon.locean-ipsl.upmc.fr (Darwin)
194#
195#   * add sphinx for HTML and PDF productions
196#   * remove html_one and pdf_one
197#
198# - fplod 20100310T103741Z aedon.locean-ipsl.upmc.fr (Darwin)
199#
200#   * add man_troff which shell script possible now with docutils 0.6
201#     can be test with
202#      $ man -M ../doc/manuals/man varamma_profile.sh
203#
204# - fplod 2009-05-15T13:26:19Z aedon.locean-ipsl.upmc.fr (Darwin)
205#
206#   * improve installation and check of links
207#
208# - fplod 2009-05-13T10:20:09Z aedon.locean-ipsl.upmc.fr (Darwin)
209#
210#   * implicit rules
211#
212#     nb : may be will only work wih GNU make
213#     but easier to update : only one line to add in thi makefile when
214#     a new file (.pro or .sh) is added in $(DIRSRC) directory
215#
216#   * rst2latex usage of manuals_many.sty and manual_one.sty (for TOC and parindent)
217#   * bug fix for PDF manual (missing one pdf2latex)
218#
219# - fplod 2009-04-03T08:01:24Z aedon.locean-ipsl.upmc.fr (Darwin)
220#
221#   * replace rst2newlatex by rst2latex and add options
222#   * suppression of rawlatex
223#   * add TOC thanks to http://docutils.sourceforge.net/docs/user/rst/demo.txt
224#
225# - fplod 2008-12-19T09:27:55Z aedon.locean-ipsl.upmc.fr (Darwin)
226#
227#   * remove idldoc stuff (not enought mature and connected to SAXO)
228#
229# - fplod 2008-10-13T09:10:41Z aedon.locean-ipsl.upmc.fr (Darwin)
230#
231#   * new tree for doc
232#
233# - fplod 2008-08-14T12:15:30Z aedon.locean-ipsl.upmc.fr (Darwin)
234#
235#   * move *.sh and *.pro to varamma_ws/src/
236#
237# - fplod 2008-08-12T08:02:13Z aedon.locean-ipsl.upmc.fr (Darwin)
238#
239#   * add idl files
240#   * add doidldoc.sh usage
241#
242# - fplod 2008-08-08T09:37:37Z aedon.locean-ipsl.upmc.fr (Darwin)
243#
244#   * creation
245#
246# SEE ALSO
247# ========
248#
249# :ref:`extract_rst.sh`
250#
251#-
252#
253PRODUCT = \
254varamma
255
256PRODUCTNAME = \
257$$(echo $(PRODUCT) | tr [:lower:] [:upper:])
258
259SUBPRODUCT = \
260varamma_ws
261
262DIRSRC = \
263../src/
264
265DIRADM = \
266./
267
268DIRTMP = \
269./
270
271DIRDESIGN = \
272./design/
273
274DIRWWW = \
275../doc/
276
277URLPUBLISH = \
278http://www.locean-ipsl.upmc.fr/~fplod/$(PRODUCT)/$(SUBPRODUCT)/doc/
279
280LIST_INVENTORY = \
281$(DIRADM)/saxo.inv
282
283LIST_RST_GUIDES = \
284$(shell find $(DIRADM)/guides/ -name "*.rst")
285
286LIST_SRCSH = \
287$(shell find $(DIRSRC) -name "*.sh" | sort)
288
289LIST_SRCSH_RST = \
290$(shell echo "$(LIST_SRCSH)" | \
291        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals/+g" \
292            -e "s+\.sh+.sh.rst+g")
293
294LIST_SRCSH_TROFF = \
295$(shell echo "$(LIST_SRCSH)" | \
296        sed -e "s+$(DIRSRC)+$(DIRWWW)/man/man1/+g" \
297            -e "s+\.sh+.sh.1+g")
298
299LIST_SRCIDL = \
300$(shell find $(DIRSRC) -name "*.pro" | sort)
301
302LIST_SRCIDL_RST = \
303$(shell echo "$(LIST_SRCIDL)" | \
304        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals/+g" \
305            -e "s+\.pro+.pro.rst+g")
306
307LIST_SRCMATLAB = \
308$(shell find $(DIRSRC) -name "*.m" | grep -v external_matlab | sort)
309
310LIST_SRCMATLAB_RST = \
311$(shell echo "$(LIST_SRCMATLAB)" | \
312        sed \
313            -e "s+$(DIRSRC)/utilitaires+$(DIRTMP)/sphinx_tmpdir/manuals/utilitaires+g" \
314            -e "s+$(DIRSRC)/external_matlab+$(DIRTMP)/sphinx_tmpdir/manuals/external_matlab+g" \
315            -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals/+g" \
316            -e "s+\.m+.m.rst+g")
317
318LIST_SRCMATLAB_DEMO = \
319$(shell echo "$(LIST_SRCMATLAB)" | \
320        sed -e "s+$(DIRSRC)+$(DIRTMP)/demo/+g" \
321            -e "s+\.m+_demo.m+g")
322
323LIST_SRCMATLAB_TEST = \
324$(shell echo "$(LIST_SRCMATLAB)" | \
325        sed -e "s+$(DIRSRC)+$(DIRTMP)/test/+g" \
326            -e "s+\.m+_test.m+g")
327
328LIST_SRCFERRET = \
329$(shell find $(DIRSRC) -name "*.jnl" | sort)
330
331LIST_SRCFERRET_RST = \
332$(shell echo "$(LIST_SRCFERRET)" | \
333        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals/+g" \
334            -e "s+\.jnl+.jnl.rst+g")
335
336LIST_SRCPYTHON = \
337$(shell find $(DIRSRC) -name "*.py" | sort)
338
339.PHONY : \
340help \
341before \
342clean \
343cleantmp \
344design \
345htmllinkcheckb \
346htmllinkchecka \
347spellcheck \
348all \
349man \
350man_troff_sphinx \
351html \
352html_sphinx \
353html_sphinx_one \
354pdf \
355pdf_sphinx \
356html_src_browser \
357html_src_browser_doxygen \
358matlab_demo \
359matlab_test
360
361help :
362        @echo "Prepare output directories :"
363        @echo "\$$ make before"
364        @echo ""
365        @echo "Following commands are available to build outputs :"
366        @echo "\$$ make all"
367        @echo " "
368        @echo "Check links before installation : "
369        @echo "\$$ make htmllinkcheckb"
370        @echo " "
371        @echo "Last step = installation of HTML and pdf files"
372        @echo "\$$ make install_all"
373        @echo " "
374        @echo "Check links after installation : "
375        @echo "\$$ make htmllinkchecka"
376        @echo " "
377
378before :
379        @mkdir -p $(DIRWWW)/man/man1/
380        @mkdir -p $(DIRWWW)/html/sphinx/
381        @mkdir -p $(DIRWWW)/pdf/sphinx/
382        @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/
383        @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/
384        @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/utilitaires/
385        @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/external_matlab/
386        @mkdir -p $(DIRTMP)/sphinx_tmpdir/guides/
387        @mkdir -p $(DIRWWW)/src_browser/
388        @mkdir -p $(DIRTMP)/demo/
389        @mkdir -p $(DIRTMP)/test/
390
391
392install_all : \
393install_html \
394install_pdf \
395install_browser
396
397install_html :
398        @$(DIRADM)/install.sh -w $(DIRWWW)/html/ -u $(URLPUBLISH)/html/
399
400install_pdf :
401        @$(DIRADM)/install.sh -w $(DIRWWW)/pdf/ -u $(URLPUBLISH)/pdf/
402
403install_browser :
404        @$(DIRADM)/install.sh -w $(DIRWWW)/src_browser/doxygen/html/ -u $(URLPUBLISH)/src_browser/doxygen/html/
405
406clean : \
407cleantmp
408        -@rm -fr $(DIRWWW)/man/
409        -@rm -fr $(DIRWWW)/html/
410        -@rm -fr $(DIRWWW)/pdf/
411        -@rm -fr $(DIRWWW)/src_browser/
412
413
414cleantmp :
415        -@rm -f $(DIRTMP)/all.xml
416        -@rm -f $(DIRTMP)/*.txt
417        -@rm -f $(DIRTMP)/*.tex
418        -@rm -fr $(DIRTMP)/sphinx_tmpdir/
419        -@rm -f $(DIRTMP)/sphinx_*.log
420        -@rm -rf $(DIRTMP)/demo/
421        -@rm -rf $(DIRTMP)/test/
422
423design : \
424$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \
425$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg
426
427htmllinkcheckb :
428        @$(DIRADM)/linkchecker.sh -d $(DIRWWW)/html/
429
430htmllinkchecka :
431        @$(DIRADM)/linkchecker.sh -u $(URLPUBLISH)
432
433spellcheck :
434        @++aspell --mode=sgml --master=english -c \
435        $(DIRSRC)/$(PRODUCT).xml
436
437all : \
438man \
439html_src_browser
440
441html_src_browser : \
442html_src_browser_doxygen
443
444man : \
445man_troff_sphinx
446
447man_troff_sphinx : \
448$(DIRADM)/sphinx/conf.py \
449$(DIRTMP)/sphinx_tmpdir/index_manuals.rst \
450$(LIST_INVENTORY) \
451$(LIST_SRCSH_RST) \
452$(LIST_SRCPYTHON) \
453$(LIST_SRCIDL_RST) \
454$(LIST_SRCMATLAB_RST) \
455$(LIST_SRCFERRET_RST)
456        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/
457        @cp $(DIRADM)/index_guides.rst $(DIRTMP)/sphinx_tmpdir/
458        @cp $(LIST_RST_GUIDES) $(DIRTMP)/sphinx_tmpdir/guides/
459        @cp $(LIST_INVENTORY) $(DIRTMP)/sphinx_tmpdir/
460        @sphinx-build -b man -c $(DIRADM)/sphinx \
461            -d $(DIRTMP)/sphinx_tmpdir/doctrees/ \
462            -d $(DIRTMP)/sphinx_tmpdir/doctrees/manuals/ \
463            -w $(DIRTMP)/sphinx_man_troff.log \
464            $(DIRTMP)/sphinx_tmpdir/ \
465            $(DIRWWW)/man/man1/
466
467html : \
468html_sphinx \
469html_sphinx_one
470
471html_sphinx : \
472$(DIRADM)/sphinx/conf.py \
473$(DIRADM)/index.rst \
474$(DIRADM)/index_guides.rst \
475$(DIRTMP)/sphinx_tmpdir/index_manuals.rst \
476$(LIST_INVENTORY) \
477$(LIST_RST_GUIDES) \
478$(LIST_SRCSH_RST) \
479$(LIST_SRCPYTHON) \
480$(LIST_SRCIDL_RST) \
481$(LIST_SRCMATLAB_RST) \
482$(LIST_SRCFERRET_RST)
483        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/
484        @cp $(DIRADM)/index_guides.rst $(DIRTMP)/sphinx_tmpdir/
485        @cp $(LIST_RST_GUIDES) $(DIRTMP)/sphinx_tmpdir/guides/
486        @cp $(LIST_INVENTORY) $(DIRTMP)/sphinx_tmpdir/
487        @sphinx-build -b html -c $(DIRADM)/sphinx \
488            -d $(DIRTMP)/sphinx_tmpdir/doctrees \
489            -w $(DIRTMP)/sphinx_html.log \
490            $(DIRTMP)/sphinx_tmpdir/ \
491            $(DIRWWW)/html/sphinx/
492
493html_sphinx_one : \
494$(DIRADM)/sphinx/conf.py \
495$(DIRADM)/index.rst \
496$(DIRADM)/index_guides.rst \
497$(DIRTMP)/sphinx_tmpdir/index_manuals.rst \
498$(LIST_INVENTORY) \
499$(LIST_RST_GUIDES) \
500$(LIST_SRCSH_RST) \
501$(LIST_SRCPYTHON) \
502$(LIST_SRCIDL_RST) \
503$(LIST_SRCMATLAB_RST) \
504$(LIST_SRCFERRET_RST)
505        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/
506        @cp $(DIRADM)/index_guides.rst $(DIRTMP)/sphinx_tmpdir/
507        @cp $(LIST_RST_GUIDES) $(DIRTMP)/sphinx_tmpdir/guides/
508        @cp $(LIST_INVENTORY) $(DIRTMP)/sphinx_tmpdir/
509        @sphinx-build -b singlehtml -c $(DIRADM)/sphinx \
510            -d $(DIRTMP)/sphinx_tmpdir/doctrees \
511            -w $(DIRTMP)/sphinx_html_one.log \
512            $(DIRTMP)/sphinx_tmpdir/ \
513            $(DIRWWW)/html/sphinx_one/
514
515pdf : \
516pdf_sphinx
517
518pdf_sphinx : \
519$(DIRADM)/sphinx/conf.py \
520$(DIRADM)/index.rst \
521$(DIRADM)/index_guides.rst \
522$(DIRTMP)/sphinx_tmpdir/index_manuals.rst \
523$(LIST_INVENTORY) \
524$(LIST_RST_GUIDES) \
525$(LIST_SRCSH_RST) \
526$(LIST_SRCPYTHON) \
527$(LIST_SRCIDL_RST) \
528$(LIST_SRCMATLAB_RST) \
529$(LIST_SRCFERRET_RST)
530        @cp $(DIRADM)/index.rst $(DIRTMP)/sphinx_tmpdir/
531        @cp $(DIRADM)/index_guides.rst $(DIRTMP)/sphinx_tmpdir/
532        @cp $(LIST_RST_GUIDES) $(DIRTMP)/sphinx_tmpdir/guides/
533        @cp $(LIST_INVENTORY) $(DIRTMP)/sphinx_tmpdir/
534        @sphinx-build -b latex -c $(DIRADM)/sphinx \
535            -d $(DIRTMP)/sphinx_tmpdir/doctrees \
536            -w $(DIRTMP)/sphinx_pdf.log \
537            $(DIRTMP)/sphinx_tmpdir/ \
538            $(DIRTMP)/sphinx_tmpdir/latex_output
539        cd $(DIRTMP)/sphinx_tmpdir/latex_output/; make all-pdf
540        cp $(DIRTMP)/sphinx_tmpdir/latex_output/*.pdf \
541           $(DIRWWW)/pdf/sphinx/
542
543$(DIRTMP)/sphinx_tmpdir/index_manuals.rst :
544        @-mkdir $(DIRTMP)/sphinx_tmpdir/
545        @echo ".. _index_manuals:" > $@
546        @echo " " >> $@
547        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@
548        @echo "$(PRODUCTNAME) manuals" >> $@
549        @echo "$(PRODUCTNAME) manuals" | tr [:print:] = >> $@
550        @echo " " >> $@
551        @echo ".. only:: html" >> $@
552        @echo " " >> $@
553        @echo "   **Download** offline version (\`.pdf <../../pdf/sphinx/$(PRODUCTNAME).pdf>\`__)" >> $@
554        @echo " " >> $@
555        @echo "Shell scripts" >> $@
556        @echo "Shell scripts" | tr [:print:] = >> $@
557        @echo ".. toctree::" >> $@
558        @echo "   :maxdepth: 1" 1>> $@
559        @echo "   :glob:" 1>> $@
560        @echo " " >> $@
561        @for file in $(LIST_SRCSH); \
562        do \
563           echo "   manuals/$$(basename $${file})"; \
564        done >> $@
565        @echo " " >> $@
566        @echo "PYTHON scripts" >> $@
567        @echo "PYTHON scripts" | tr [:print:] = >> $@
568        @echo ".. toctree::" >> $@
569        @echo "   :maxdepth: 1" 1>> $@
570        @echo "   :glob:" 1>> $@
571        @echo " " >> $@
572        @for file in $(LIST_SRCPYTHON); \
573        do \
574           echo "   .. automodule:: src.$$(basename $${file} .py).$$(basename $${file} .py)"; \
575           echo "      :members:"; \
576        done >> $@
577        @echo " " >> $@
578        @echo "IDL scripts" >> $@
579        @echo "IDL scripts" | tr [:print:] = >> $@
580        @echo ".. toctree::" >> $@
581        @echo "   :maxdepth: 1" 1>> $@
582        @echo "   :glob:" 1>> $@
583        @echo " " >> $@
584        @for file in $(LIST_SRCIDL); \
585        do \
586           echo "   manuals/$$(basename $${file})"; \
587        done >> $@
588        @echo " " >> $@
589        @echo "MATLAB scripts" >> $@
590        @echo "MATLAB scripts" | tr [:print:] = >> $@
591        @echo ".. toctree::" >> $@
592        @echo "   :maxdepth: 1" 1>> $@
593        @echo "   :glob:" 1>> $@
594        @echo " " >> $@
595        @for file in $(LIST_SRCMATLAB); \
596        do \
597           echo "   manuals/$$(dirname $${file})/$$(basename $${file})" | sed -e "s+\.\./src/++"; \
598        done >> $@
599        @echo " " >> $@
600        @echo "FERRET scripts" >> $@
601        @echo "FERRET scripts" | tr [:print:] = >> $@
602        @echo ".. toctree::" >> $@
603        @echo "   :maxdepth: 1" 1>> $@
604        @echo "   :glob:" 1>> $@
605        @echo " " >> $@
606        @for file in $(LIST_SRCFERRET); \
607        do \
608           echo "   manuals/$$(basename $${file})"; \
609        done >> $@
610        @echo " " >> $@
611
612html_src_browser_doxygen : \
613        $(DIRWWW)/src_browser/doxygen/
614
615$(DIRWWW)/src_browser/doxygen/ : \
616$(DIRADM)/Doxyfile_$(PRODUCT) \
617$(DIRADM)/m2cpp.pl \
618$(LIST_SRCMATLAB) \
619$(LIST_SRCFORTRAN)
620        @doxygen $<
621        @touch $@
622
623matlab_demo : \
624$(LIST_SRCMATLAB_DEMO)
625
626matlab_test : \
627$(LIST_SRCMATLAB_TEST)
628
629$(DIRTMP)/sphinx_tmpdir/manuals/%.sh.rst : $(DIRSRC)/%.sh $(DIRADM)/extract_rst.sh
630        @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@
631
632$(DIRTMP)/sphinx_tmpdir/manuals/%.pro.rst : $(DIRSRC)/%.pro $(DIRADM)/extract_rst.sh
633        @$(DIRADM)/extract_rst.sh -i $< -l IDL -o $@
634
635$(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/%.m $(DIRADM)/extract_rst.sh
636        @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@
637
638$(DIRTMP)/sphinx_tmpdir/manuals/utilitaires/%.m.rst : $(DIRSRC)/utilitaires/%.m $(DIRADM)/extract_rst.sh
639        @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@
640
641$(DIRTMP)/sphinx_tmpdir/manuals/external_matlab/%.m.rst : $(DIRSRC)/external_matlab/%.m $(DIRADM)/extract_rst.sh
642        @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@
643
644$(DIRTMP)/demo/%_demo.m : $(DIRSRC)/%.m $(DIRADM)/extract_demoandtest.sh
645        -@$(DIRADM)/extract_demoandtest.sh -i $< -m demo -o $@
646
647$(DIRTMP)/test/%_test.m : $(DIRSRC)/%.m $(DIRADM)/extract_demoandtest.sh
648        -@$(DIRADM)/extract_demoandtest.sh -i $< -m test -o $@
649
650$(DIRTMP)/sphinx_tmpdir/manuals/%.jnl.rst : $(DIRSRC)/%.jnl  $(DIRADM)/extract_rst.sh
651        @$(DIRADM)/extract_rst.sh -i $< -l ferret -o $@
652
653$(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg
654        @convert $< $@
655
656$(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot
657        @dot -Tsvg -o $@ $<
658
659$(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \
660./makefile
661        @makeppgraph --graphviz --output=$@
Note: See TracBrowser for help on using the repository browser.