Changeset 4 for trunk


Ignore:
Timestamp:
12/05/08 12:28:42 (15 years ago)
Author:
pinsard
Message:

better manuals production tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/makefile

    r3 r4  
    11#+ 
     2# 
    23# module 
    34# ====== 
     
    2223# ========== 
    2324# 
    24 # - fplod 2008-11-26T11:59:08Z aedon.locean-ipsl.upmc.fr (Darwin) 
     25# $Id$ 
     26# 
     27# - fplod 2008-12-05T11:15:37Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2528# 
    2629#   * creation 
     
    6467$(DIRSRC)/src/elogd.sh \ 
    6568$(DIRSRC)/src/plogd.sh \ 
    66 $(DIRSRC)/src/tlogd.sh \ 
    67 $(DIRSRC)/src/cat_clim_olr.sh \ 
    68 $(DIRSRC)/src/is_leap_year.sh \ 
    69 $(DIRSRC)/src/olr_split.sh \ 
    70 $(DIRSRC)/src/paper01_pre.sh 
    71  
    72 LIST_SRCIDL = \ 
    73 $(DIRSRC)/src/forout.pro \ 
    74 $(DIRSRC)/src/hovmuller.pro \ 
    75 $(DIRSRC)/src/paper01.pro \ 
    76 $(DIRSRC)/src/timeserie.pro \ 
    77 $(DIRSRC)/src/figure08.pro \ 
    78 $(DIRSRC)/src/figure09.pro \ 
    79 $(DIRSRC)/src/figure11.pro \ 
    80 $(DIRSRC)/src/figure12.pro \ 
    81 $(DIRSRC)/src/figure13.pro \ 
    82 $(DIRSRC)/src/figure14.pro 
     69$(DIRSRC)/src/tlogd.sh 
    8370 
    8471.PHONY : \ 
     
    114101        @mkdir -p $(DIRWWW)/manuals/html/ 
    115102        @mkdir -p $(DIRWWW)/manuals/pdf/ 
    116         @mkdir -p $(DIRWWW)/src_browser/idl/ 
    117103 
    118104install : 
     
    143129 
    144130all : \ 
    145 withidldoc \ 
    146131man_html \ 
    147132man_pdf 
    148  
    149 withidldoc : \ 
    150 $(DIRWWW)/src_browser/idl/ 
    151133 
    152134man_html : \ 
     
    157139$(DIRWWW)/manuals/html/elogd.sh.html \ 
    158140$(DIRWWW)/manuals/html/plogd.sh.html \ 
    159 $(DIRWWW)/manuals/html/tlogd.sh.html \ 
    160 $(DIRWWW)/manuals/html/cat_clim_olr.sh.html \ 
    161 $(DIRWWW)/manuals/html/is_leap_year.sh.html \ 
    162 $(DIRWWW)/manuals/html/olr_split.sh.html \ 
    163 $(DIRWWW)/manuals/html/paper01_pre.sh.html \ 
    164 $(DIRWWW)/manuals/html/forout.pro.html \ 
    165 $(DIRWWW)/manuals/html/hovmuller.pro.html \ 
    166 $(DIRWWW)/manuals/html/paper01.pro.html \ 
    167 $(DIRWWW)/manuals/html/timeserie.pro.html \ 
    168 $(DIRWWW)/manuals/html/figure08.pro.html \ 
    169 $(DIRWWW)/manuals/html/figure09.pro.html \ 
    170 $(DIRWWW)/manuals/html/figure11.pro.html \ 
    171 $(DIRWWW)/manuals/html/figure12.pro.html \ 
    172 $(DIRWWW)/manuals/html/figure13.pro.html \ 
    173 $(DIRWWW)/manuals/html/figure14.pro.html 
     141$(DIRWWW)/manuals/html/tlogd.sh.html 
    174142 
    175143man_pdf : \ 
     
    179147$(DIRWWW)/manuals/pdf/elogd.sh.pdf \ 
    180148$(DIRWWW)/manuals/pdf/plogd.sh.pdf \ 
    181 $(DIRWWW)/manuals/pdf/tlogd.sh.pdf \ 
    182 $(DIRWWW)/manuals/pdf/cat_clim_olr.sh.pdf \ 
    183 $(DIRWWW)/manuals/pdf/is_leap_year.sh.pdf \ 
    184 $(DIRWWW)/manuals/pdf/olr_split.sh.pdf \ 
    185 $(DIRWWW)/manuals/pdf/paper01_pre.sh.pdf \ 
    186 $(DIRWWW)/manuals/pdf/forout.pro.pdf \ 
    187 $(DIRWWW)/manuals/pdf/hovmuller.pro.pdf \ 
    188 $(DIRWWW)/manuals/pdf/paper01.pro.pdf \ 
    189 $(DIRWWW)/manuals/pdf/timeserie.pro.pdf \ 
    190 $(DIRWWW)/manuals/pdf/figure08.pro.pdf \ 
    191 $(DIRWWW)/manuals/pdf/figure09.pro.pdf \ 
    192 $(DIRWWW)/manuals/pdf/figure11.pro.pdf \ 
    193 $(DIRWWW)/manuals/pdf/figure12.pro.pdf \ 
    194 $(DIRWWW)/manuals/pdf/figure13.pro.pdf \ 
    195 $(DIRWWW)/manuals/pdf/figure14.pro.pdf 
    196  
    197 $(DIRWWW)/src_browser/idl/ : \ 
    198 $(LIST_SRCPRO) 
    199         @echo "www : experimental production of idldoc" 
    200         @echo "www : PATH and IDL_DIR are redefined here" 
    201         @PATH=/usr/home/fplod/src/SAXO_DIR_ws/Documentation/xmldoc/:${PATH}; \ 
    202         export IDL_DIR=/usr/local_macosx/idl//idl_6.2/idl_6.2/; \ 
    203         doidldoc.sh -i $(DIRSRC)/src/ \ 
    204                      -t "$(PRODUCTNAME) Documentation" \ 
    205                      -o $@ 
     149$(DIRWWW)/manuals/pdf/tlogd.sh.pdf 
    206150 
    207151$(DIRWWW)/manuals/html/index.html : \ 
     
    218162$(DIRTMP)/$(PRODUCT)_manuals.tex 
    219163        @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    220   
     164 
    221165$(DIRTMP)/$(PRODUCT)_manuals.tex : \ 
    222166$(DIRTMP)/$(PRODUCT)_manuals.rst 
     
    226170$(DIRTMP)/$(PRODUCT)_manuals.rst : \ 
    227171$(DIRTMP)/index.rst \ 
    228 $(LIST_SRCSH) \ 
    229 $(LIST_SRCIDL) 
     172$(DIRTMP)/$(PRODUCT)_profile.sh.rst \ 
     173$(DIRTMP)/dlogd.sh.rst \ 
     174$(DIRTMP)/elogd.sh.rst \ 
     175$(DIRTMP)/plogd.sh.rst \ 
     176$(DIRTMP)/tlogd.sh.rst 
    230177        cat $(DIRTMP)/index.rst > ${DIRTMP}/$(PRODUCT)_manuals.rst1 
    231178        @for file in $(LIST_SRCSH); \ 
    232         do echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
    233         echo "$$(basename $${file})" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
    234         echo "$$(basename $${file} | tr [:print:] =)" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ; \ 
    235         echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 
    236         sed -e "s/^==*$$/-----------------/" ${DIRTMP}/$$(basename $${file}).rst >> ${DIRTMP}/$(PRODUCT)_manuals.rst1; \ 
    237         done 
    238         @for file in $(LIST_SRCIDL); \ 
    239179        do echo " " >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
    240180        echo "$$(basename $${file})" >> ${DIRTMP}/$(PRODUCT)_manuals.rst1 ;\ 
     
    264204        @for file in $(LIST_SRCSH); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}): $$(basename $${file}).html"; done >> $@ 
    265205        @echo " " >> $@ 
    266         @echo "IDL scripts" >> $@ 
    267         @echo "===========" >> $@ 
    268         @echo " " >> $@ 
    269         @echo "See also idldoc output here_" >> $@ 
    270         @echo " " >> $@ 
    271         @echo ".. _here : ../../src_browser/idl/index.html" >> $@ 
    272         @echo " " >> $@ 
    273         @for file in $(LIST_SRCIDL); do echo " ";echo "$$(basename $${file})_"; echo " "; echo ".. _$$(basename $${file}): $$(basename $${file}).html"; done >> $@ 
    274         @echo " " >> $@ 
    275206 
    276207$(DIRWWW)/manuals/html/$(PRODUCT)_profile.sh.html : \ 
     
    367298$(DIRSRC)/src/tlogd.sh 
    368299        @extract_rst.sh -i $< -l sh -o $@ 
    369  
    370 $(DIRWWW)/manuals/html/cat_clim_olr.sh.html : \ 
    371 $(DIRTMP)/cat_clim_olr.sh.rst 
    372         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    373         $< $@ 
    374  
    375 $(DIRWWW)/manuals/pdf/cat_clim_olr.sh.pdf : \ 
    376 $(DIRTMP)/cat_clim_olr.sh.tex 
    377         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    378         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    379  
    380 $(DIRTMP)/cat_clim_olr.sh.tex : \ 
    381 $(DIRTMP)/cat_clim_olr.sh.rst 
    382         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    383         $< $@ 
    384  
    385 $(DIRTMP)/cat_clim_olr.sh.rst : \ 
    386 $(DIRSRC)/src/cat_clim_olr.sh 
    387         @extract_rst.sh -i $< -l sh -o $@ 
    388  
    389 $(DIRWWW)/manuals/html/is_leap_year.sh.html : \ 
    390 $(DIRTMP)/is_leap_year.sh.rst 
    391         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    392         $< $@ 
    393  
    394 $(DIRWWW)/manuals/pdf/is_leap_year.sh.pdf : \ 
    395 $(DIRTMP)/is_leap_year.sh.tex 
    396         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    397         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    398  
    399 $(DIRTMP)/is_leap_year.sh.tex : \ 
    400 $(DIRTMP)/is_leap_year.sh.rst 
    401         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    402         $< $@ 
    403  
    404 $(DIRTMP)/is_leap_year.sh.rst : \ 
    405 $(DIRSRC)/src/is_leap_year.sh 
    406         @extract_rst.sh -i $< -l sh -o $@ 
    407  
    408 $(DIRWWW)/manuals/html/olr_split.sh.html : \ 
    409 $(DIRTMP)/olr_split.sh.rst 
    410         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    411         $< $@ 
    412  
    413 $(DIRWWW)/manuals/pdf/olr_split.sh.pdf : \ 
    414 $(DIRTMP)/olr_split.sh.tex 
    415         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    416         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    417  
    418 $(DIRTMP)/olr_split.sh.tex : \ 
    419 $(DIRTMP)/olr_split.sh.rst 
    420         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    421         $< $@ 
    422  
    423 $(DIRTMP)/olr_split.sh.rst : \ 
    424 $(DIRSRC)/src/olr_split.sh 
    425         @extract_rst.sh -i $< -l sh -o $@ 
    426  
    427 $(DIRWWW)/manuals/html/paper01_pre.sh.html : \ 
    428 $(DIRTMP)/paper01_pre.sh.rst 
    429         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    430         $< $@ 
    431  
    432 $(DIRWWW)/manuals/pdf/paper01_pre.sh.pdf : \ 
    433 $(DIRTMP)/paper01_pre.sh.tex 
    434         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    435         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    436  
    437 $(DIRTMP)/paper01_pre.sh.tex : \ 
    438 $(DIRTMP)/paper01_pre.sh.rst 
    439         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    440         $< $@ 
    441  
    442 $(DIRTMP)/paper01_pre.sh.rst : \ 
    443 $(DIRSRC)/src/paper01_pre.sh 
    444         @extract_rst.sh -i $< -l sh -o $@ 
    445  
    446 $(DIRWWW)/manuals/html/forout.pro.html : \ 
    447 $(DIRTMP)/forout.pro.rst 
    448         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    449         $< $@ 
    450  
    451 $(DIRWWW)/manuals/pdf/forout.pro.pdf : \ 
    452 $(DIRTMP)/forout.pro.tex 
    453         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    454         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    455  
    456 $(DIRTMP)/forout.pro.tex : \ 
    457 $(DIRTMP)/forout.pro.rst 
    458         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    459         $< $@ 
    460  
    461 $(DIRTMP)/forout.pro.rst : \ 
    462 $(DIRSRC)/src/forout.pro 
    463         @extract_rst.sh -i $< -l IDL -o $@ 
    464  
    465 $(DIRWWW)/manuals/html/hovmuller.pro.html : \ 
    466 $(DIRTMP)/hovmuller.pro.rst 
    467         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    468         $< $@ 
    469  
    470 $(DIRWWW)/manuals/pdf/hovmuller.pro.pdf : \ 
    471 $(DIRTMP)/hovmuller.pro.tex 
    472         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    473         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    474  
    475 $(DIRTMP)/hovmuller.pro.tex : \ 
    476 $(DIRTMP)/hovmuller.pro.rst 
    477         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    478         $< $@ 
    479  
    480 $(DIRTMP)/hovmuller.pro.rst : \ 
    481 $(DIRSRC)/src/hovmuller.pro 
    482         @extract_rst.sh -i $< -l IDL -o $@ 
    483  
    484 $(DIRWWW)/manuals/html/paper01.pro.html : \ 
    485 $(DIRTMP)/paper01.pro.rst 
    486         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    487         $< $@ 
    488  
    489 $(DIRWWW)/manuals/pdf/paper01.pro.pdf : \ 
    490 $(DIRTMP)/paper01.pro.tex 
    491         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    492         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    493  
    494 $(DIRTMP)/paper01.pro.tex : \ 
    495 $(DIRTMP)/paper01.pro.rst 
    496         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    497         $< $@ 
    498  
    499 $(DIRTMP)/paper01.pro.rst : \ 
    500 $(DIRSRC)/src/paper01.pro 
    501         @extract_rst.sh -i $< -l IDL -o $@ 
    502  
    503 $(DIRWWW)/manuals/html/timeserie.pro.html : \ 
    504 $(DIRTMP)/timeserie.pro.rst 
    505         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    506         $< $@ 
    507  
    508 $(DIRWWW)/manuals/pdf/timeserie.pro.pdf : \ 
    509 $(DIRTMP)/timeserie.pro.tex 
    510         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    511         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    512  
    513 $(DIRTMP)/timeserie.pro.tex : \ 
    514 $(DIRTMP)/timeserie.pro.rst 
    515         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    516         $< $@ 
    517  
    518 $(DIRTMP)/timeserie.pro.rst : \ 
    519 $(DIRSRC)/src/timeserie.pro 
    520         @extract_rst.sh -i $< -l IDL -o $@ 
    521  
    522 $(DIRWWW)/manuals/html/figure08.pro.html : \ 
    523 $(DIRTMP)/figure08.pro.rst 
    524         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    525         $< $@ 
    526  
    527 $(DIRWWW)/manuals/pdf/figure08.pro.pdf : \ 
    528 $(DIRTMP)/figure08.pro.tex 
    529         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    530         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    531  
    532 $(DIRTMP)/figure08.pro.tex : \ 
    533 $(DIRTMP)/figure08.pro.rst 
    534         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    535         $< $@ 
    536  
    537 $(DIRTMP)/figure08.pro.rst : \ 
    538 $(DIRSRC)/src/figure08.pro 
    539         @extract_rst.sh -i $< -l IDL -o $@ 
    540  
    541 $(DIRWWW)/manuals/html/figure09.pro.html : \ 
    542 $(DIRTMP)/figure09.pro.rst 
    543         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    544         $< $@ 
    545  
    546 $(DIRWWW)/manuals/pdf/figure09.pro.pdf : \ 
    547 $(DIRTMP)/figure09.pro.tex 
    548         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    549         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    550  
    551 $(DIRTMP)/figure09.pro.tex : \ 
    552 $(DIRTMP)/figure09.pro.rst 
    553         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    554         $< $@ 
    555  
    556 $(DIRTMP)/figure09.pro.rst : \ 
    557 $(DIRSRC)/src/figure09.pro 
    558         @extract_rst.sh -i $< -l IDL -o $@ 
    559  
    560 $(DIRWWW)/manuals/html/figure11.pro.html : \ 
    561 $(DIRTMP)/figure11.pro.rst 
    562         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    563         $< $@ 
    564  
    565 $(DIRWWW)/manuals/pdf/figure11.pro.pdf : \ 
    566 $(DIRTMP)/figure11.pro.tex 
    567         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    568         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    569  
    570 $(DIRTMP)/figure11.pro.tex : \ 
    571 $(DIRTMP)/figure11.pro.rst 
    572         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    573         $< $@ 
    574  
    575 $(DIRTMP)/figure11.pro.rst : \ 
    576 $(DIRSRC)/src/figure11.pro 
    577         @extract_rst.sh -i $< -l IDL -o $@ 
    578  
    579 $(DIRWWW)/manuals/html/figure12.pro.html : \ 
    580 $(DIRTMP)/figure12.pro.rst 
    581         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    582         $< $@ 
    583  
    584 $(DIRWWW)/manuals/pdf/figure12.pro.pdf : \ 
    585 $(DIRTMP)/figure12.pro.tex 
    586         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    587         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    588  
    589 $(DIRTMP)/figure12.pro.tex : \ 
    590 $(DIRTMP)/figure12.pro.rst 
    591         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    592         $< $@ 
    593  
    594 $(DIRTMP)/figure12.pro.rst : \ 
    595 $(DIRSRC)/src/figure12.pro 
    596         @extract_rst.sh -i $< -l IDL -o $@ 
    597  
    598 $(DIRWWW)/manuals/html/figure13.pro.html : \ 
    599 $(DIRTMP)/figure13.pro.rst 
    600         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    601         $< $@ 
    602  
    603 $(DIRWWW)/manuals/pdf/figure13.pro.pdf : \ 
    604 $(DIRTMP)/figure13.pro.tex 
    605         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    606         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    607  
    608 $(DIRTMP)/figure13.pro.tex : \ 
    609 $(DIRTMP)/figure13.pro.rst 
    610         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    611         $< $@ 
    612  
    613 $(DIRTMP)/figure13.pro.rst : \ 
    614 $(DIRSRC)/src/figure13.pro 
    615         @extract_rst.sh -i $< -l IDL -o $@ 
    616  
    617 $(DIRWWW)/manuals/html/figure14.pro.html : \ 
    618 $(DIRTMP)/figure14.pro.rst 
    619         @rst2html.py --input-encoding=ISO-8859-15 --strict --time \ 
    620         $< $@ 
    621  
    622 $(DIRWWW)/manuals/pdf/figure14.pro.pdf : \ 
    623 $(DIRTMP)/figure14.pro.tex 
    624         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    625         @-pdflatex -output-directory $(DIRWWW)/manuals/pdf/ $< 
    626  
    627 $(DIRTMP)/figure14.pro.tex : \ 
    628 $(DIRTMP)/figure14.pro.rst 
    629         @rst2newlatex.py --input-encoding=ISO-8859-15 --strict --time \ 
    630         $< $@ 
    631  
    632 $(DIRTMP)/figure14.pro.rst : \ 
    633 $(DIRSRC)/src/figure14.pro 
    634         @extract_rst.sh -i $< -l IDL -o $@ 
Note: See TracChangeset for help on using the changeset viewer.