Changeset 409


Ignore:
Timestamp:
11/06/09 16:02:19 (14 years ago)
Author:
pinsard
Message:

cleaner makefile for doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/makefile

    r387 r409  
    11# 
    2 # module : 
     2# module 
     3# ====== 
     4# 
    35# generation of documentations from XML files (and some IDL files) in HTML and 
    46# wiki forms 
    57# 
    6 # original location : 
     8# FILES 
     9# ===== 
     10# 
    711# /Users/fplod/SAXO_DIR_ws/SRC/Documentation/xmldoc/makefile sur aedon.locean-ipsl.upmc.fr 
    812# 
    9 # update : 
     13# EVOLUTIONS 
     14# ========== 
     15# 
    1016# $Id$ 
    11 # fplod 2008-04-16T10:06:39Z aedon.locean-ipsl.upmc.fr (Darwin) 
     17# 
     18# - fplod 20091106T143104Z aedon.locean-ipsl.upmc.fr (Darwin) 
     19# 
     20#   * better usage of $< 
     21# 
     22# - fplod 2008-04-16T10:06:39Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1223# working on wiki production using 
    1324# http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html 
     
    115126 
    116127$(DIRWIKI)/WikiStart : \ 
    117 $(DIRSRC)/saxo_tracwiki.xsl \ 
    118 $(DIRTMP)/websaxo_full.xml 
     128$(DIRTMP)/websaxo_full.xml \ 
     129$(DIRSRC)/saxo_tracwiki.xsl 
    119130        @xsltproc \ 
    120131        --output ginette \ 
    121132        $(DIRSRC)/saxo_tracwiki.xsl \ 
    122         $(DIRTMP)/websaxo_full.xml 
    123         @xsltproc \ 
    124         $(DIRSRC)/saxo_tracwiki.xsl \ 
    125         $(DIRTMP)/websaxo_full.xml | \ 
     133        $< 
     134        @xsltproc \ 
     135        $(DIRSRC)/saxo_tracwiki.xsl \ 
     136        $< | \ 
    126137        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    127138        sed -e "s+@star@+ *+" \ 
     
    141152        --output $@ \ 
    142153        $(DIRSRC)/saxo_html.xsl \ 
    143         $(DIRTMP)/websaxo_full.xml 
     154        $< 
    144155 
    145156$(DIRTMP)/websaxo_full.xml : \ 
     
    150161        --noent \ 
    151162        --output $@ \ 
    152         $(DIRSRC)/websaxo.xml 
     163        $< 
    153164 
    154165$(DIRWIKI)/SvnBasicCommands : \ 
    155 $(DIRSRC)/saxo_tracwiki.xsl \ 
    156 $(DIRTMP)/svnbasiccommands_full.xml 
    157         @xsltproc \ 
    158         $(DIRSRC)/saxo_tracwiki.xsl \ 
    159         $(DIRTMP)/svnbasiccommands_full.xml | \ 
     166$(DIRTMP)/svnbasiccommands_full.xml \ 
     167$(DIRSRC)/saxo_tracwiki.xsl 
     168        @xsltproc \ 
     169        $(DIRSRC)/saxo_tracwiki.xsl \ 
     170        $< | \ 
    160171        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    161172        sed -e "s+@star@+*+" \ 
     
    175186        --output $@ \ 
    176187        $(DIRSRC)/saxo_html.xsl \ 
    177         $(DIRTMP)/svnbasiccommands_full.xml 
     188        $< 
    178189 
    179190$(DIRTMP)/svnbasiccommands_full.xml : \ 
     
    184195        --noent \ 
    185196        --output $@ \ 
    186         $(DIRSRC)/svnbasiccommands.xml 
     197        $< 
    187198 
    188199$(DIRWIKI)/FaqSaxo : \ 
    189 $(DIRSRC)/saxo_tracwiki.xsl \ 
    190 $(DIRTMP)/faqsaxo_full.xml 
    191         @xsltproc \ 
    192         $(DIRSRC)/saxo_tracwiki.xsl \ 
    193         $(DIRTMP)/faqsaxo_full.xml | \ 
     200$(DIRTMP)/faqsaxo_full.xml \ 
     201$(DIRSRC)/saxo_tracwiki.xsl 
     202        @xsltproc \ 
     203        $(DIRSRC)/saxo_tracwiki.xsl \ 
     204        $< | \ 
    194205        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    195206        sed -e "s+@star@+*+" \ 
     
    209220        --output $@ \ 
    210221        $(DIRSRC)/saxo_html.xsl \ 
    211         $(DIRTMP)/faqsaxo_full.xml 
     222        $< 
    212223 
    213224$(DIRTMP)/faqsaxo_full.xml : \ 
     
    218229        --noent \ 
    219230        --output $@ \ 
    220         $(DIRSRC)/faqsaxo.xml 
     231        $< 
    221232 
    222233$(DIRWIKI)/GetSaxo : \ 
    223 $(DIRSRC)/saxo_tracwiki.xsl \ 
    224 $(DIRTMP)/getsaxo_full.xml 
    225         @xsltproc \ 
    226         $(DIRSRC)/saxo_tracwiki.xsl \ 
    227         $(DIRTMP)/getsaxo_full.xml | \ 
     234$(DIRTMP)/getsaxo_full.xml \ 
     235$(DIRSRC)/saxo_tracwiki.xsl 
     236        @xsltproc \ 
     237        $(DIRSRC)/saxo_tracwiki.xsl \ 
     238        $< | \ 
    228239        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    229240        sed -e "s+@star@+*+" \ 
     
    243254        --output $@ \ 
    244255        $(DIRSRC)/saxo_html.xsl \ 
    245         $(DIRTMP)/getsaxo_full.xml 
    246  
    247 $(DIRTMP)/getsaxo_full.xml : \ 
     256        $< 
     257 
     258$(DIRTMP)/getsaxo_sed.xml : \ 
    248259$(DIRSRC)/getsaxo.xml \ 
    249260$(DIRSRC)/getsaxo_pre.sh 
    250261        @$(DIRSRC)/getsaxo_pre.sh 
    251         @xmllint \ 
    252         --xinclude \ 
    253         --encode utf-8 \ 
    254         --noent \ 
    255         --output $@ \ 
    256         $(DIRTMP)/getsaxo_sed.xml 
     262 
     263$(DIRTMP)/getsaxo_full.xml : \ 
     264$(DIRTMP)/getsaxo_sed.xml 
     265        @xmllint \ 
     266        --xinclude \ 
     267        --encode utf-8 \ 
     268        --noent \ 
     269        --output $@ \ 
     270        $< 
    257271 
    258272$(DIRWIKI)/FirstSteps : \ 
    259 $(DIRSRC)/saxo_tracwiki.xsl \ 
    260 $(DIRTMP)/firststeps_full.xml 
    261         @xsltproc \ 
    262         $(DIRSRC)/saxo_tracwiki.xsl \ 
    263         $(DIRTMP)/firststeps_full.xml | \ 
     273$(DIRTMP)/firststeps_full.xml \ 
     274$(DIRSRC)/saxo_tracwiki.xsl 
     275        @xsltproc \ 
     276        $(DIRSRC)/saxo_tracwiki.xsl \ 
     277        $< | \ 
    264278        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    265279        sed -e "s+@star@+*+" \ 
     
    279293        --output $@ \ 
    280294        $(DIRSRC)/saxo_html.xsl \ 
    281         $(DIRTMP)/firststeps_full.xml 
     295        $< 
    282296 
    283297$(DIRWIKI)/AllPlots : \ 
    284 $(DIRSRC)/saxo_tracwiki.xsl \ 
    285 $(DIRTMP)/all_plots.xml 
    286         @xsltproc \ 
    287         $(DIRSRC)/saxo_tracwiki.xsl \ 
    288         $(DIRTMP)/all_plots.xml | \ 
     298$(DIRTMP)/all_plots.xml \ 
     299$(DIRSRC)/saxo_tracwiki.xsl 
     300        @xsltproc \ 
     301        $(DIRSRC)/saxo_tracwiki.xsl \ 
     302        $< | \ 
    289303        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    290304        sed -e "s+@star@+*+" \ 
     
    304318        --output $@ \ 
    305319        $(DIRSRC)/saxo_html.xsl \ 
    306         $(DIRTMP)/all_plots.xml 
     320        $< 
    307321 
    308322 
    309323$(DIRTMP)/all_plots.xml : \ 
    310 $(DIRSRC)/all_plots_docbook.xsl \ 
    311 $(DIRTMP)/firststeps_full.xml 
     324$(DIRTMP)/firststeps_full.xml \ 
     325$(DIRSRC)/all_plots_docbook.xsl 
    312326        @xsltproc \ 
    313327        --output $@ \ 
    314328        $(DIRSRC)/all_plots_docbook.xsl \ 
    315         $(DIRTMP)/firststeps_full.xml 
     329        $< 
     330 
     331$(DIRTMP)/firststeps_sed.xml : \ 
     332$(DIRSRC)/firststeps_pre.sh \ 
     333$(DIRSRC)/firststeps.xml 
     334        @$(DIRSRC)/firststeps_pre.sh 
    316335 
    317336$(DIRTMP)/firststeps_full.xml : \ 
    318 $(DIRSRC)/firststeps.xml \ 
    319 $(DIRSRC)/firststeps_pre.sh 
    320         @$(DIRSRC)/firststeps_pre.sh 
    321         @xmllint \ 
    322         --xinclude \ 
    323         --encode utf-8 \ 
    324         --noent \ 
    325         --output $@ \ 
    326         $(DIRTMP)/firststeps_sed.xml 
     337$(DIRTMP)/firststeps_sed.xml 
     338        @xmllint \ 
     339        --xinclude \ 
     340        --encode utf-8 \ 
     341        --noent \ 
     342        --output $@ \ 
     343        $< 
    327344 
    328345$(DIRWIKI)/Mailing : \ 
    329 $(DIRSRC)/saxo_tracwiki.xsl \ 
    330 $(DIRTMP)/mailing_full.xml 
    331         @xsltproc \ 
    332         $(DIRSRC)/saxo_tracwiki.xsl \ 
    333         $(DIRTMP)/mailing_full.xml | \ 
     346$(DIRTMP)/mailing_full.xml \ 
     347$(DIRSRC)/saxo_tracwiki.xsl 
     348        @xsltproc \ 
     349        $(DIRSRC)/saxo_tracwiki.xsl \ 
     350        $< | \ 
    334351        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    335352        sed -e "s+@star@+*+" \ 
     
    349366        --output $@ \ 
    350367        $(DIRSRC)/saxo_html.xsl \ 
    351         $(DIRTMP)/mailing_full.xml 
     368        $< 
    352369 
    353370$(DIRTMP)/mailing_full.xml : \ 
     
    358375        --noent \ 
    359376        --output $@ \ 
    360         $(DIRSRC)/mailing.xml 
     377        $< 
    361378 
    362379$(DIRWIKI)/MiniNotice : \ 
    363 $(DIRSRC)/saxo_tracwiki.xsl \ 
    364 $(DIRTMP)/mini_notice_full.xml 
    365         @xsltproc \ 
    366         $(DIRSRC)/saxo_tracwiki.xsl \ 
    367         $(DIRTMP)/mini_notice_full.xml | \ 
     380$(DIRTMP)/mini_notice_full.xml \ 
     381$(DIRSRC)/saxo_tracwiki.xsl 
     382        @xsltproc \ 
     383        $(DIRSRC)/saxo_tracwiki.xsl \ 
     384        $< | \ 
    368385        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    369386        sed -e "s+@star@+*+" \ 
     
    385402        --output $@ \ 
    386403        $(DIRSRC)/saxo_html.xsl \ 
    387         $(DIRTMP)/mini_notice_full.xml 
     404        $< 
    388405 
    389406$(DIRTMP)/mini_notice_full.xml : \ 
     
    394411        --noent \ 
    395412        --output $@ \ 
    396         $(DIRSRC)/mini_notice.xml 
     413        $< 
    397414 
    398415$(DIRWIKI)/TipLink : \ 
    399 $(DIRSRC)/saxo_tracwiki.xsl \ 
    400 $(DIRTMP)/tiplink_full.xml 
    401         @xsltproc \ 
    402         $(DIRSRC)/saxo_tracwiki.xsl \ 
    403         $(DIRTMP)/tiplink_full.xml | \ 
     416$(DIRTMP)/tiplink_full.xml \ 
     417$(DIRSRC)/saxo_tracwiki.xsl 
     418        @xsltproc \ 
     419        $(DIRSRC)/saxo_tracwiki.xsl \ 
     420        $< | \ 
    404421        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    405422        sed -e "s+@star@+*+" \ 
     
    419436        --output $@ \ 
    420437        $(DIRSRC)/saxo_html.xsl \ 
    421         $(DIRTMP)/tiplink_full.xml 
     438        $< 
    422439 
    423440$(DIRTMP)/tiplink_full.xml : \ 
     
    428445        --noent \ 
    429446        --output $@ \ 
    430         $(DIRSRC)/tiplink.xml 
     447        $< 
    431448 
    432449$(DIRWIKI)/InfoUpdateCm : \ 
    433 $(DIRSRC)/saxo_tracwiki.xsl \ 
    434 $(DIRTMP)/infoupdatecm_full.xml 
    435         @xsltproc \ 
    436         $(DIRSRC)/saxo_tracwiki.xsl \ 
    437         $(DIRTMP)/infoupdatecm_full.xml | \ 
     450$(DIRTMP)/infoupdatecm_full.xml \ 
     451$(DIRSRC)/saxo_tracwiki.xsl 
     452        @xsltproc \ 
     453        $(DIRSRC)/saxo_tracwiki.xsl \ 
     454        $< | \ 
    438455        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    439456        sed -e "s+@star@+*+" \ 
     
    453470        --output $@ \ 
    454471        $(DIRSRC)/saxo_html.xsl \ 
    455         $(DIRTMP)/infoupdatecm_full.xml 
     472        $< 
    456473 
    457474$(DIRTMP)/infoupdatecm_full.xml : \ 
     
    463480        --noent \ 
    464481        --output $@ \ 
    465         $(DIRSRC)/infoupdatecm.xml 
     482        $< 
    466483 
    467484$(DIRWIKI)/InfoUpdateKwd : \ 
    468 $(DIRSRC)/saxo_tracwiki.xsl \ 
    469 $(DIRTMP)/infoupdatekwd_full.xml 
    470         @xsltproc \ 
    471         $(DIRSRC)/saxo_tracwiki.xsl \ 
    472         $(DIRTMP)/infoupdatekwd_full.xml | \ 
     485$(DIRTMP)/infoupdatekwd_full.xml \ 
     486$(DIRSRC)/saxo_tracwiki.xsl 
     487        @xsltproc \ 
     488        $(DIRSRC)/saxo_tracwiki.xsl \ 
     489        $< | \ 
    473490        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    474491        sed -e "s+@star@+*+" \ 
     
    488505        --output $@ \ 
    489506        $(DIRSRC)/saxo_html.xsl \ 
    490         $(DIRTMP)/infoupdatekwd_full.xml 
     507        $< 
    491508 
    492509$(DIRTMP)/infoupdatekwd_full.xml : \ 
     
    498515        --noent \ 
    499516        --output $@ \ 
    500         $(DIRTMP)/infoupdatekwd.xml 
     517        $< 
    501518 
    502519$(DIRTMP)/rowscm.xml : \ 
    503520../../ForOldVersion/updateold.pro 
    504521        @echo "<tbody>" > $@ 
    505         @grep "IF NOT key_forgetold AND n_elements(\(.* = .*\)" ../../ForOldVersion/updateold.pro | \ 
     522        @grep "IF NOT key_forgetold AND n_elements(\(.* = .*\)" $< | \ 
    506523        sort | \ 
    507524        sed -e "s/\(^.* THEN \)\(.*\)\( = \)\(.*\)/<row><entry colname='old'><varname>\2<\/varname><\/entry> <entry colname='new'><varname>\4<\/varname><\/entry><\/row>/" >> $@ 
     
    511528../../ForOldVersion/updatekwd.pro 
    512529        @echo "<tbody>" > $@ 
    513         @grep "^  old = \[old, .* new = \[new" ../../ForOldVersion/updatekwd.pro | \ 
     530        @grep "^  old = \[old, .* new = \[new" $< | \ 
    514531        sort | \ 
    515532        sed -e "s/\( old = \[old, '\)\(.*\)\('\] *& new = \[new, '\)\(.*\)\('\]\)/<row><entry colname='old'><varname>\2<\/varname><\/entry> <entry colname='new'><varname>\4<\/varname><\/entry><\/row>/" >> $@ 
     
    518535 
    519536$(DIRWIKI)/WhatisSaxo : \ 
    520 $(DIRSRC)/saxo_tracwiki.xsl \ 
    521 $(DIRTMP)/whatissaxo_full.xml 
    522         @xsltproc \ 
    523         $(DIRSRC)/saxo_tracwiki.xsl \ 
    524         $(DIRTMP)/whatissaxo_full.xml | \ 
     537$(DIRTMP)/whatissaxo_full.xml \ 
     538$(DIRSRC)/saxo_tracwiki.xsl 
     539        @xsltproc \ 
     540        $(DIRSRC)/saxo_tracwiki.xsl \ 
     541        $< | \ 
    525542        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    526543        sed -e "s+@star@+*+" \ 
     
    540557        --output $@ \ 
    541558        $(DIRSRC)/saxo_html.xsl \ 
    542         $(DIRTMP)/whatissaxo_full.xml 
     559        $< 
    543560 
    544561$(DIRTMP)/whatissaxo_full.xml : \ 
     
    549566        --noent \ 
    550567        --output $@ \ 
    551         $(DIRSRC)/whatissaxo.xml 
     568        $< 
    552569 
    553570$(DIRWIKI)/WhatsNew : \ 
    554 $(DIRSRC)/saxo_tracwiki.xsl \ 
    555 $(DIRTMP)/whatsnew_full.xml 
    556         @xsltproc \ 
    557         $(DIRSRC)/saxo_tracwiki.xsl \ 
    558         $(DIRTMP)/whatsnew_full.xml | \ 
     571$(DIRTMP)/whatsnew_full.xml \ 
     572$(DIRSRC)/saxo_tracwiki.xsl 
     573        @xsltproc \ 
     574        $(DIRSRC)/saxo_tracwiki.xsl \ 
     575        $< | \ 
    559576        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    560577        sed -e "s+@star@+*+" \ 
     
    574591        --output $@ \ 
    575592        $(DIRSRC)/saxo_html.xsl \ 
    576         $(DIRTMP)/whatsnew_full.xml 
     593        $< 
    577594         
    578595$(DIRTMP)/whatsnew_full.xml : \ 
     
    583600        --noent \ 
    584601        --output $@ \ 
    585         $(DIRSRC)/whatsnew.xml 
     602        $< 
    586603 
    587604$(DIRWIKI)/UpdateSaxo : \ 
    588 $(DIRSRC)/saxo_tracwiki.xsl \ 
    589 $(DIRTMP)/updatesaxo_full.xml 
    590         @xsltproc \ 
    591         $(DIRSRC)/saxo_tracwiki.xsl \ 
    592         $(DIRTMP)/updatesaxo_full.xml | \ 
     605$(DIRTMP)/updatesaxo_full.xml \ 
     606$(DIRSRC)/saxo_tracwiki.xsl 
     607        @xsltproc \ 
     608        $(DIRSRC)/saxo_tracwiki.xsl \ 
     609        $< | \ 
    593610        awk 'sub(/ @star@ $$/,""){printf(" * %s", $$0);next};1' | \ 
    594611        sed -e "s+@star@+*+" \ 
     
    608625        --output $@ \ 
    609626        $(DIRSRC)/saxo_html.xsl \ 
    610         $(DIRTMP)/updatesaxo_full.xml 
     627        $< 
    611628         
    612629$(DIRTMP)/updatesaxo_full.xml : \ 
     
    617634        --noent \ 
    618635        --output $@ \ 
    619         $(DIRSRC)/updatesaxo.xml 
     636        $< 
    620637 
    621638$(DIRTMP)/titlepage.saxo.xsl : \ 
     
    624641        --output $@ \ 
    625642        http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \ 
    626         $(DIRSRC)/titlepage.saxo.xml \ 
    627         $(DIRSRC)/titlepage.saxo.xml 
     643        $< 
Note: See TracChangeset for help on using the changeset viewer.