Changeset 105 for trunk/adm


Ignore:
Timestamp:
09/10/10 16:43:22 (14 years ago)
Author:
pinsard
Message:

improve makefile dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/makefile

    r104 r105  
    114114LIST_SRCPHP_RST = \ 
    115115$(shell echo "$(LIST_SRCPHP)" | \ 
    116         sed -e "s+$(DIRSRC)+$(DIRTMP)/+g" \ 
     116        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
    117117            -e "s+\.php+.php.rst+g") 
    118  
    119 LIST_SRCPHP_R2W = \ 
    120 $(shell echo "$(LIST_SRCPHP)" | \ 
    121         sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \ 
    122             -e "s+\.php+.php.txt+g") 
    123  
    124118 
    125119LIST_SRCPHP_TROFF = \ 
     
    127121        sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 
    128122            -e "s+\.php+.php.1+g") 
    129  
    130 LIST_SRCPHP_HTML = \ 
    131 $(shell echo "$(LIST_SRCPHP)" | \ 
    132         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 
    133             -e "s+\.php+.php.html+g") 
    134  
    135 LIST_SRCPHP_PDF = \ 
    136 $(shell echo "$(LIST_SRCPHP)" | \ 
    137         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 
    138             -e "s+\.php+.php.pdf+g") 
    139123 
    140124LIST_SRCXSL = \ 
     
    157141LIST_SRCXSL_RST = \ 
    158142$(shell echo "$(LIST_SRCXSL)" | \ 
    159         sed -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 
     143        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
    160144            -e "s+\.xsl+.xsl.rst+g") 
    161  
    162 LIST_SRCXSL_R2W = \ 
    163 $(shell echo "$(LIST_SRCXSL)" | \ 
    164         sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \ 
    165             -e "s+\.xsl+.xsl.txt+g") 
    166145 
    167146LIST_SRCXSL_TROFF = \ 
     
    169148        sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 
    170149            -e "s+\.xsl+.xsl.1+g") 
    171  
    172 LIST_SRCXSL_HTML = \ 
    173 $(shell echo "$(LIST_SRCXSL)" | \ 
    174         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 
    175             -e "s+\.xsl+.xsl.html+g") 
    176  
    177 LIST_SRCXSL_PDF = \ 
    178 $(shell echo "$(LIST_SRCXSL)" | \ 
    179         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g" \ 
    180             -e "s+\.xsl+.xsl.pdf+g") 
    181150 
    182151LIST_SRCSH = \ 
     
    191160LIST_SRCSH_RST = \ 
    192161$(shell echo "$(LIST_SRCSH)" | \ 
    193         sed -e "s+$(DIRSRC)+$(DIRTMP)+g" \ 
     162        sed -e "s+$(DIRSRC)+$(DIRTMP)/sphinx_tmpdir/manuals+g" \ 
    194163            -e "s+\.sh+.sh.rst+g") 
    195  
    196 LIST_SRCSH_R2W = \ 
    197 $(shell echo "$(LIST_SRCSH)" | \ 
    198         sed -e "s+$(DIRSRC)+$(DIRTMP)/rest2web_tmpdir+g" \ 
    199             -e "s+\.sh+.sh.txt+g") 
    200164 
    201165LIST_SRCSH_TROFF = \ 
     
    203167        sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/man/man1/+g" \ 
    204168            -e "s+\.sh+.sh.1+g") 
    205  
    206 LIST_SRCSH_HTML = \ 
    207 $(shell echo "$(LIST_SRCSH)" | \ 
    208         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/html/many/+g" \ 
    209             -e "s+\.sh+.sh.html+g") 
    210  
    211 LIST_SRCSH_PDF = \ 
    212 $(shell echo "$(LIST_SRCSH)" | \ 
    213         sed -e "s+$(DIRSRC)+$(DIRWWW)/manuals/pdf/many/+g"  \ 
    214             -e "s+\.sh+.sh.pdf+g") 
    215169 
    216170.PHONY : \ 
     
    226180man \ 
    227181man_troff_sphinx \ 
    228 man_html \ 
    229 man_html_sphinx \ 
    230 man_html_sphinx_one \ 
    231 man_pdf \ 
    232 man_pdf_sphinx 
     182html \ 
     183html_sphinx \ 
     184html_sphinx_one \ 
     185pdf \ 
     186pdf_sphinx 
    233187 
    234188help : 
     
    251205before : 
    252206        @mkdir -p $(DIRWWW)/manuals/man/man1/ 
    253         @mkdir -p $(DIRWWW)/manuals/html/rest2web/ 
    254         @mkdir -p $(DIRWWW)/manuals/html/rest2web/css/ 
    255207        @mkdir -p $(DIRWWW)/manuals/html/sphinx/ 
    256208        @mkdir -p $(DIRWWW)/manuals/pdf/sphinx/ 
    257209        @mkdir -p $(DIRTMP)/sphinx_tmpdir/doctrees/ 
    258         @mkdir -p $(DIRTMP)/rest2web_tmpdir/ 
     210        @mkdir -p $(DIRTMP)/sphinx_tmpdir/manuals/ 
    259211 
    260212install : 
     
    270222cleantmp : 
    271223        -@rm -f $(DIRTMP)/all.xml 
    272         -@rm -f $(DIRTMP)/*.rst 
    273224        -@rm -f $(DIRTMP)/*.tex 
    274         -@rm -rf $(DIRTMP)/rest2web_tmpdir/ 
    275         -@rm -f $(DIRTMP)/rest2web.log 
    276225        -@rm -rf $(DIRTMP)/sphinx_tmpdir/ 
    277226        -@rm -f $(DIRTMP)/sphinx_*.log 
     
    296245man : \ 
    297246man_troff \ 
    298 man_html \ 
    299 man_pdf 
     247html \ 
     248pdf 
    300249 
    301250man_troff : \ 
     
    309258$(LIST_SRCXSL_RST) \ 
    310259$(LIST_SRCPHP_RST) 
    311         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    312         @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/ 
    313         @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/ 
    314260        @sphinx-build -b man -c $(DIRADM)/sphinx \ 
    315261            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    318264            $(DIRWWW)/manuals/man/man1/ 
    319265 
    320 man_html : \ 
    321 man_html_sphinx \ 
    322 man_html_sphinx_one 
    323  
    324 man_html_sphinx : \ 
     266html : \ 
     267html_sphinx \ 
     268html_sphinx_one 
     269 
     270html_sphinx : \ 
    325271$(DIRADM)/sphinx/conf.py \ 
    326272$(DIRTMP)/sphinx_tmpdir/index.rst \ 
     
    328274$(LIST_SRCXSL_RST) \ 
    329275$(LIST_SRCPHP_RST) 
    330         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    331         @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/ 
    332         @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/ 
    333276        @sphinx-build -b html -c $(DIRADM)/sphinx \ 
    334277            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    337280            $(DIRWWW)/manuals/html/sphinx/ 
    338281 
    339 man_html_sphinx_one : \ 
     282html_sphinx_one : \ 
    340283$(DIRADM)/sphinx/conf.py \ 
    341284$(DIRTMP)/sphinx_tmpdir/index.rst \ 
     
    343286$(LIST_SRCXSL_RST) \ 
    344287$(LIST_SRCPHP_RST) 
    345         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    346         @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/ 
    347         @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/ 
    348288        @sphinx-build -b singlehtml -c $(DIRADM)/sphinx \ 
    349289            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    352292            $(DIRWWW)/manuals/html/sphinx_one/ 
    353293 
    354 man_pdf : \ 
    355 man_pdf_sphinx 
    356  
    357 man_pdf_sphinx : \ 
     294pdf : \ 
     295pdf_sphinx 
     296 
     297pdf_sphinx : \ 
    358298$(DIRADM)/sphinx/conf.py \ 
    359299$(DIRTMP)/sphinx_tmpdir/index.rst \ 
     
    361301$(LIST_SRCXSL_RST) \ 
    362302$(LIST_SRCPHP_RST) 
    363         @cp $(LIST_SRCSH_RST) $(DIRTMP)/sphinx_tmpdir/ 
    364         @cp $(LIST_SRCXSL_RST) $(DIRTMP)/sphinx_tmpdir/ 
    365         @cp $(LIST_SRCPHP_RST) $(DIRTMP)/sphinx_tmpdir/ 
    366303        @sphinx-build -b latex -c $(DIRADM)/sphinx \ 
    367304            -d $(DIRTMP)/sphinx_tmpdir/doctrees \ 
     
    388325        @for file in $(LIST_SRCSH); \ 
    389326        do \ 
    390            echo "   $$(basename $${file})"; \ 
     327           echo "   manuals/$$(basename $${file})"; \ 
    391328        done >> $@ 
    392329        @echo " " >> $@ 
     
    399336        @for file in $(LIST_SRCXSL); \ 
    400337        do \ 
    401            echo "   $$(basename $${file})"; \ 
     338           echo "   manuals/$$(basename $${file})"; \ 
    402339        done >> $@ 
    403340        @echo " " >> $@ 
     
    410347        @for file in $(LIST_SRCPHP); \ 
    411348        do \ 
    412            echo "   $$(basename $${file})"; \ 
     349           echo "   manuals/$$(basename $${file})"; \ 
    413350        done >> $@ 
    414351        @echo " " >> $@ 
     
    418355        @echo " " >> $@ 
    419356 
    420 $(DIRTMP)/%.sh.rst : $(DIRSRC)/%.sh 
     357$(DIRTMP)/sphinx_tmpdir/manuals/%.sh.rst : $(DIRSRC)/%.sh $(DIRADM)/extract_rst.sh 
    421358        @$(DIRADM)/extract_rst.sh -i $< -l sh -o $@ 
    422359 
    423 $(DIRTMP)/%.xsl.rst : $(DIRSRC)/%.xsl 
     360$(DIRTMP)/sphinx_tmpdir/manuals/%.xsl.rst : $(DIRSRC)/%.xsl $(DIRADM)/extract_rst.sh 
    424361        @$(DIRADM)/extract_rst.sh -i $< -l xml -o $@ 
    425362 
    426 $(DIRTMP)/%.php.rst : $(DIRSRC)/%.php 
     363$(DIRTMP)/sphinx_tmpdir/manuals/%.php.rst : $(DIRSRC)/%.php $(DIRADM)/extract_rst.sh 
    427364        @$(DIRADM)/extract_rst.sh -i $< -l php -o $@ 
    428365 
Note: See TracChangeset for help on using the changeset viewer.