Changeset 87


Ignore:
Timestamp:
09/10/10 17:00:19 (14 years ago)
Author:
pinsard
Message:

improve makefile dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/makefile

    r84 r87  
    2121# $Id$ 
    2222# 
     23# - fplod 20100910T145305Z aedon.locean-ipsl.upmc.fr (Darwin) 
     24# 
     25# 
     26#   * try to improve dependencies 
     27#   * clean useless macros 
     28 
    2329# - fplod 20100712T140824Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2430# 
     
    142148LIST_SRCSH_RST = \ 
    143149$(shell echo "$(LIST_SRCSH)" | \ 
    144         sed -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 
     150        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
    145151            -e "s+\.sh+.sh.rst+g") 
    146152 
     
    149155        sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 
    150156            -e "s+\.sh+.sh.1+g") 
    151  
    152 LIST_SRCSH_HTML = \ 
    153 $(shell echo "$(LIST_SRCSH)" | \ 
    154         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 
    155             -e "s+\.sh+.sh.html+g") 
    156  
    157 LIST_SRCSH_PDF = \ 
    158 $(shell echo "$(LIST_SRCSH)" | \ 
    159         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 
    160             -e "s+\.sh+.sh.pdf+g") 
    161157 
    162158LIST_SRCMATLAB = \ 
     
    188184LIST_SRCMATLAB_RST = \ 
    189185$(shell echo "$(LIST_SRCMATLAB)" | \ 
    190         sed -e "s+$(DIRSRC)/mode_sahelien+$(DIRTMP)+g" \ 
    191             -e "s+$(DIRSRC)/SIMULS_IRCAAM+$(DIRTMP)+g" \ 
    192             -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 
     186        sed -e "s+$(DIRSRC)/mode_sahelien+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
     187            -e "s+$(DIRSRC)/SIMULS_IRCAAM+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
     188            -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
    193189            -e "s+\.m+.m.rst+g") 
    194  
    195 LIST_SRCMATLAB_HTML = \ 
    196 $(shell echo "$(LIST_SRCMATLAB)" | \ 
    197         sed -e "s+$(DIRSRC)/mode_sahelien/+$(DIRWWW)/manuals/html/many/+g" \ 
    198             -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/html/many/+g" \ 
    199             -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 
    200             -e "s+\.m+.m.html+g") 
    201  
    202 LIST_SRCMATLAB_PDF = \ 
    203 $(shell echo "$(LIST_SRCMATLAB)" | \ 
    204         sed -e "s+$(DIRSRC)/mode_sahelien/+$(DIRWWW)/manuals/pdf/many/+g" \ 
    205             -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/pdf/many/+g" \ 
    206             -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 
    207             -e "s+\.m+.m.pdf+g") 
    208190 
    209191LIST_SRCFORTRAN = \ 
     
    213195LIST_SRCFORTRAN_RST = \ 
    214196$(shell echo "$(LIST_SRCFORTRAN)" | \ 
    215         sed -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRTMP)+g" \ 
    216             -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 
     197        sed -e "s+$(DIRSRC)/SIMULS_IRCAAM+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
     198            -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
    217199            -e "s+\.F90+.F90.rst+g" \ 
    218200            -e "s+\.f+.f.rst+g") 
    219  
    220 LIST_SRCFORTRAN_HTML = \ 
    221 $(shell echo "$(LIST_SRCFORTRAN)" | \ 
    222         sed -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/html/many/+g" \ 
    223             -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 
    224             -e "s+\.F90+.F90.html+g" \ 
    225             -e "s+\.f+.f.html+g") 
    226  
    227 LIST_SRCFORTRAN_PDF = \ 
    228 $(shell echo "$(LIST_SRCFORTRAN)" | \ 
    229         sed -e "s+$(DIRSRC)/mode_sahelien/+$(DIRWWW)/manuals/pdf/many/+g" \ 
    230             -e "s+$(DIRSRC)/SIMULS_IRCAAM/+$(DIRWWW)/manuals/pdf/many/+g" \ 
    231             -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 
    232             -e "s+\.F90+.F90.pdf+g" \ 
    233             -e "s+\.f+.f.pdf+g") 
    234201 
    235202.PHONY : \ 
     
    246213man_troff \ 
    247214man_troff_sphinx \ 
    248 man_html \ 
    249 man_html_sphinx \ 
    250 man_html_sphinx_one \ 
    251 man_pdf \ 
    252 man_pdf_sphinx \ 
     215html \ 
     216html_sphinx \ 
     217html_sphinx_one \ 
     218pdf \ 
     219pdf_sphinx \ 
    253220html_src_browser \ 
    254221html_src_browser_doxygen 
     
    273240before : 
    274241        @mkdir -p $(DIRWWW)/manuals/man/man1/ 
    275         @mkdir -p $(DIRWWW)/manuals/html/many/ 
    276242        @mkdir -p $(DIRWWW)/manuals/html/sphinx/ 
    277         @mkdir -p $(DIRWWW)/manuals/pdf/many/ 
    278243        @mkdir -p $(DIRWWW)/manuals/pdf/sphinx/ 
    279244        @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/ 
     245        @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/ 
    280246        @mkdir -p $(DIRWWW)/src_browser/ 
    281247 
     
    303269cleantmp : 
    304270        -@rm -f $(DIRTMP)/all.xml 
    305         -@rm -f $(DIRTMP)/*.rst 
    306271        -@rm -f $(DIRTMP)/*.tex 
    307         -@rm -f $(DIRWWW)/manuals/pdf/many/*.aux 
    308         -@rm -f $(DIRWWW)/manuals/pdf/many/*.log 
    309         -@rm -f $(DIRWWW)/manuals/pdf/many/*.out 
    310272        -@rm -fr $(DIRTMP)/sphinx_tmpdir/ 
    311273        -@rm -f $(DIRTMP)/sphinx_*.log 
     
    331293man : \ 
    332294man_troff \ 
    333 man_html \ 
    334 man_pdf \ 
     295html \ 
     296pdf \ 
    335297 
    336298html_src_browser : \ 
     
    346308$(LIST_SRCMATLAB_RST) \ 
    347309$(LIST_SRCFORTRAN_RST) 
    348         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    349         @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/ 
    350         @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/ 
    351310        @sphinx-build -b man -c $(DIRADM)/sphinx \ 
    352311            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    355314            $(DIRWWW)/manuals/man/man1/ 
    356315 
    357 man_html : \ 
    358 man_html_sphinx \ 
    359 man_html_sphinx_one 
    360  
    361 man_html_sphinx : \ 
     316html : \ 
     317html_sphinx \ 
     318html_sphinx_one 
     319 
     320html_sphinx : \ 
    362321$(DIRADM)/sphinx/conf.py \ 
    363322$(DIRTMP)/sphinx_tmpdir/index.rst \ 
     
    365324$(LIST_SRCMATLAB_RST) \ 
    366325$(LIST_SRCFORTRAN_RST) 
    367         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    368         @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/ 
    369         @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/ 
    370326        @sphinx-build -b html -c $(DIRADM)/sphinx \ 
    371327            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    374330            $(DIRWWW)/manuals/html/sphinx/ 
    375331 
    376 man_html_sphinx_one : \ 
     332html_sphinx_one : \ 
    377333$(DIRADM)/sphinx/conf.py \ 
    378334$(DIRTMP)/sphinx_tmpdir/index.rst \ 
     
    380336$(LIST_SRCMATLAB_RST) \ 
    381337$(LIST_SRCFORTRAN_RST) 
    382         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    383         @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/ 
    384         @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/ 
    385338        @sphinx-build -b singlehtml -c $(DIRADM)/sphinx \ 
    386339            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    389342            $(DIRWWW)/manuals/html/sphinx_one/ 
    390343 
    391 man_pdf : \ 
    392 man_pdf_sphinx 
    393  
    394 man_pdf_sphinx : \ 
     344pdf : \ 
     345pdf_sphinx 
     346 
     347pdf_sphinx : \ 
    395348$(DIRADM)/sphinx/conf.py \ 
    396349$(DIRTMP)/sphinx_tmpdir/index.rst \ 
     
    398351$(LIST_SRCMATLAB_RST) \ 
    399352$(LIST_SRCFORTRAN_RST) 
    400         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    401         @cp $(LIST_SRCMATLAB_RST) $(DIRTMP)/sphinx_tmpdir/ 
    402         @cp $(LIST_SRCFORTRAN_RST) $(DIRTMP)/sphinx_tmpdir/ 
    403353        @sphinx-build -b latex -c $(DIRADM)/sphinx \ 
    404354            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    425375        @for file in $(LIST_SRCSH); \ 
    426376        do \ 
    427            echo "   $$(basename $${file})"; \ 
     377           echo "   manuals/$$(basename $${file})"; \ 
    428378        done >> $@ 
    429379        @echo " " >> $@ 
     
    436386        @for file in $(LIST_SRCMATLAB); \ 
    437387        do \ 
    438            echo "   $$(basename $${file})"; \ 
     388           echo "   manuals/$$(basename $${file})"; \ 
    439389        done >> $@ 
    440390        @echo " " >> $@ 
     
    447397        @for file in $(LIST_SRCFORTRAN); \ 
    448398        do \ 
    449            echo "   $$(basename $${file})"; \ 
     399           echo "   manuals/$$(basename $${file})"; \ 
    450400        done >> $@ 
    451401        @echo " " >> $@ 
     
    465415        @touch $@ 
    466416 
    467 $(DIRTMP)/%.sh.rst : $(DIRSRC)/%.sh 
     417$(DIRTMP)/sphinx_tmpdir/manuals/%.sh.rst : $(DIRSRC)/%.sh $(DIRADM)/extract_rst.sh 
    468418        @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 
    469419 
    470 $(DIRTMP)/%.m.rst : $(DIRSRC)/%.m 
     420$(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/%.m $(DIRADM)/extract_rst.sh 
    471421        @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@ 
    472422 
    473 $(DIRTMP)/%.m.rst : $(DIRSRC)/mode_sahelien/%.m 
     423$(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/mode_sahelien/%.m $(DIRADM)/extract_rst.sh 
    474424        @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@ 
    475425 
    476 $(DIRTMP)/%.m.rst : $(DIRSRC)/SIMULS_IRCAAM/%.m 
     426$(DIRTMP)/sphinx_tmpdir/manuals/%.m.rst : $(DIRSRC)/SIMULS_IRCAAM/%.m $(DIRADM)/extract_rst.sh 
    477427        @$(DIRADM)/extract_rst.sh -i $< -l matlab -o $@ 
    478428 
    479 $(DIRTMP)/%.F90.rst : $(DIRSRC)/SIMULS_IRCAAM/%.F90 
     429$(DIRTMP)/sphinx_tmpdir/manuals/%.F90.rst : $(DIRSRC)/SIMULS_IRCAAM/%.F90 $(DIRADM)/extract_rst.sh 
    480430        @$(DIRADM)/extract_rst.sh -i $< -l fortran -o $@ 
    481431 
    482 $(DIRTMP)/%.f.rst : $(DIRSRC)/%.f 
     432$(DIRTMP)/sphinx_tmpdir/manuals/%.f.rst : $(DIRSRC)/%.f $(DIRADM)/extract_rst.sh 
    483433        @$(DIRADM)/extract_rst.sh -i $< -l fortran -o $@ 
    484434 
Note: See TracChangeset for help on using the changeset viewer.