source: trunk/makefile @ 110

Last change on this file since 110 was 94, checked in by pinsard, 14 years ago

add man troff output of manuals

  • Property svn:keywords set to Id
File size: 18.3 KB
RevLine 
[2]1# module :
[42]2# génération des pages superbib
[2]3#
4# update :
[5]5# $Id$
[94]6#
7# - fplod 20100111T140001Z aedon.locean-ipsl.upmc.fr (Darwin)
8#
9#   * usage of makepp for design
10#
[84]11# - fplod 2008-12-19T10:56:43Z aedon.locean-ipsl.upmc.fr (Darwin)
12#   
13#   * rename doc to design
14#
[76]15# fplod 2008-09-17T15:37:10Z aedon.locean-ipsl.upmc.fr (Darwin)
16# parametrization of "affreux sed"
17# add test_demo1 and test_nemo1
[64]18# fplod 2008-05-07T14:27:55Z aedon.locean-ipsl.upmc.fr (Darwin)
19# add test
[56]20# fplod 2008-04-30T09:52:22Z aedon.locean-ipsl.upmc.fr (Darwin)
21# chgt for dbk5
[54]22# fplod 2008-04-28T10:27:33Z aedon.locean-ipsl.upmc.fr (Darwin)
23# add .PHONY to make possible usage of makeppgraph
24# get rid of tidy
25# introduce URLPUBLISH
[53]26# fplod 2008-04-18T10:24:13Z aedon.locean-ipsl.upmc.fr (Darwin)
27# add year_ploticus.xsl (replacing years_gnuplot.xsl)
[43]28# fplod 2007-11-22T09:57:16Z aedon.locean-ipsl.upmc.fr (Darwin)
[54]29# replace --output parameter by --stringparam base.dir
30# according to Bob Stayton recommandation in
[43]31# http://lists.oasis-open.org/archives/docbook-apps/200711/msg00095.html
[26]32# fplod 2007-10-12T09:40:01Z aedon.locean-ipsl.upmc.fr (Darwin)
33# add linkcheck
[2]34# ++ la génération de pdf ne marchent pas bien sans doute à cause des images top
[23]35# fplod 2007-09-28T08:56:17Z aedon.locean-ipsl.upmc.fr (Darwin)
36# add before and install targets
[5]37# fplod 2007-06-06T10:23:19Z aedon.locean-ipsl.upmc.fr (Darwin)
38# change hard coded DIRBASE
[2]39# fplod 2007-05-21T14:01:20Z aedon.locean-ipsl.upmc.fr (Darwin)
40# ajout du plot nbpub/year
41# fplod 2007-03-30T09:53:48Z aedon.locean-ipsl.upmc.fr (Darwin)
42# creation
43#
[38]44PRODUCT = \
45superbib
[2]46
47DIRBASE = \
[5]48./
[2]49
50DIRSRC = \
[83]51$(DIRBASE)/
[2]52
53DIRTMP = \
[54]54./
[2]55
56DIRXML = \
57$(DIRBASE)/xml/
58
[84]59DIRDESIGN = \
60$(DIRBASE)/design/
[36]61
[2]62DIRWWW = \
[39]63/tmp/$(PRODUCT)/
[2]64
[54]65# here are some examples of DIRPUBLISH/URLPUBLISH, the first on for Seb on his Mac,
[23]66#
67# the real one for NEMO is opatlod@cerbere.locean-ispl.upmc.fr:NEMO/general/biblio_new/
68#
69# comment all of them and define your own
70#
[54]71DIRPUBLISH = \
72smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/
[23]73
[54]74URLPUBLISH = \
75none
76
77# the second one for me (Françoise) on my Mac aedon
[23]78#DIRPUBLISH = \
[48]79#fplod@aedon.locean-ipsl.upmc.fr:Sites/$(PRODUCT)demo/
[23]80
[54]81#URLPUBLISH = \
82#none
[23]83
[54]84# the third for me (Françoise) on my home page at LOCEAN
85# http://www.locean-ipsl.upmc.fr/~fplod/superbibdemo/
[76]86#DIRPUBLISH = \
87#none
[54]88
[76]89#URLPUBLISH = \
90#http://www.locean-ipsl.upmc.fr/~fplod/$(PRODUCT)demo/
[54]91
[2]92MAKEDATE = \
93`date -u +"%Y-%m-%dT%H:%M:%SZ"`
94
95XSLPARAMHTML = \
96--param makedate "'$(MAKEDATE)'" \
[40]97--param html.stylesheet "'../../style.css ../../$(PRODUCT).css'" \
[2]98--param generate.article.toc '0' \
99--param generate.section.toc.level '0' \
100--param link.mailto.url "'mailto:opatlod@locean-ipsl.upmc.fr'" \
101--param citerefentry.link '1'
102
103IMAGES = \
104$(DIRSRC)/images/globalicondl11x10_up.gif
105
[54]106.PHONY : \
[64]107test \
[76]108test_demo1 \
109test_nemo1 \
[64]110test_raw \
111test_raw_demo1 \
[65]112test_raw_nemo1 \
113test_raw_nemoall \
[55]114dbkcheck \
[54]115all \
116before \
117clean \
[84]118design \
[54]119help \
[57]120html \
[94]121html_en \
[54]122htmllinkchecka \
123htmllinkcheckb \
124install \
[57]125pdf
[54]126
[2]127help :
[23]128        @echo "Define in the makefile localisations of :"
[38]129        @echo " - sources (DIRSRC) where you \"svn checkout\" $(PRODUCT)"
[23]130        @echo " - temporary Web pages (DIRWWW), where you can check links before publication"
[88]131        @echo " - published Web pages (DIRPUBLISH/URLPUBLISH)"
[23]132        @echo ""
[2]133        @echo "Prepare output directories :"
[36]134        @echo "\$$ make before"
[23]135        @echo ""
[31]136        @echo "Identify bibliography databank "
137        @echo ""
[38]138        @echo "for example for $(PRODUCT) demo1:"
[64]139        @echo "\$$ ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml"
[31]140        @echo ""
141        @echo "for example for NEMO Survey :"
[64]142        @echo "\$$ ln -sf $(DIRSRC)/data/biball.xml $(DIRTMP)/biblio.xml"
[31]143        @echo ""
[65]144        @echo "for example for short NEMO Survey :"
145        @echo "\$$ ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml"
146        @echo ""
[20]147        @echo "check for duplicate DOI; for example :"
[64]148        @echo "\$$ ./twindoi.sh -i $(DIRTMP)/biblio.xml -t xml"
[23]149        @echo ""
[31]150        @echo "Identify user databank; for example :"
[23]151        @echo ""
[38]152        @echo "for example for $(PRODUCT) demo1:"
[64]153        @echo "\$$ ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml"
154        @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd"
[31]155        @echo ""
[65]156        @echo "for example for NEMO Survey (short and long):"
[64]157        @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml"
158        @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd"
[31]159        @echo ""
[88]160        @echo "Define your main page;  for example :"
161        @echo ""
162        @echo "for example for $(PRODUCT) demo1:"
163        @echo "\$$ ln -sf $(DIRSRC)/data/maindemo1.xml $(DIRTMP)/main.xml"
164        @echo ""
165        @echo "for example for NEMO Survey (short and long):"
166        @echo "\$$ ln -sf $(DIRSRC)/data/mainnemo.xml $(DIRTMP)/main.xml"
167        @echo ""
[2]168        @echo "Following commands are available to build outputs :"
[57]169        @echo "\$$ make html"
[26]170        @echo " "
[56]171        @echo "Check for DocBook 5 validity : "
172        @echo "\$$ make dbkcheck"
173        @echo " "
[26]174        @echo "Check links before installation : "
[43]175        @echo "\$$ make htmllinkcheckb"
[26]176        @echo " "
[2]177        @echo "Last step = installation"
[36]178        @echo "\$$ make install"
[2]179        @echo " "
[26]180        @echo "Check links after installation : "
[43]181        @echo "\$$ make htmllinkchecka"
[26]182        @echo " "
[2]183        @echo "if you move this product to an other place, "
[64]184        @echo "change parameters in the call sequence of $(DIRSRC)/before.sh and $(DIRSRC)/install.sh"
185        @echo "and in the call sequence of in $(DIRSRC)/install.sh"
[23]186        @echo "in this makefile"
[36]187        @echo " "
188        @echo " "
189        @echo " "
[48]190        @echo "for contributors at LOCEAN:"
191        @echo "\$$ export PATH=\$$PATH:/usr/home/fplod/src/schema_ws/"
[84]192        @echo "\$$ make design"
[2]193
[23]194before :
[64]195        @$(DIRSRC)/before.sh -p $(PRODUCT) -s $(DIRSRC) -w $(DIRWWW) -multi -l en -m 2
[23]196
197install :
[64]198        $(DIRSRC)/install.sh -w $(DIRWWW) -p $(DIRPUBLISH)
199        $(DIRSRC)/install.sh -w $(DIRWWW) -u $(URLPUBLISH)
[2]200clean :
201        -@rm -fr $(DIRWWW)/
[66]202        -@rm -f $(DIRTMP)/bibdemo1_dbk5_1.txt
[67]203        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.bib
204        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.tex
[66]205        -@rm -f $(DIRTMP)/bibdemo1_dbk5_1.xml
206        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.xml
[67]207        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.bbl
208        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.blg
209        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.out
210        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.aux
211        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.dvi
212        -@rm -f $(DIRTMP)/bibdemo1_dbk5_2.log
[65]213        -@rm -f $(DIRTMP)/bibnemo1.xml
214        -@rm -f $(DIRTMP)/bibnemo1.txt
215        -@rm -f $(DIRTMP)/bibnemoall.xml
216        -@rm -f $(DIRTMP)/bibnemoall.txt
[64]217        -@rm -f $(DIRTMP)/select_id.xml
[39]218        -@rm -f $(DIRTMP)/main_full.xml
219        -@rm -f $(DIRTMP)/$(PRODUCT)01.xml
220        -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.log
221        -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.err
[2]222        -@rm -f $(DIRTMP)/years_gnuplot.gnu
[53]223        -@rm -f $(DIRTMP)/years.ploticus
[39]224        -@rm -f $(DIRTMP)/$(PRODUCT)02.xml
225        -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.err
226        -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.log
[55]227        -@rm -f $(DIRTMP)/$(PRODUCT)many01.xml
228        -@rm -f $(DIRTMP)/$(PRODUCT)many02.xml
[40]229        -@rm -f $(DIRTMP)/titlepage.$(PRODUCT).xsl
[32]230        -@rm -f $(DIRTMP)/user_db.xml
[54]231        -@rm -f $(DIRTMP)/template_beforesed.php
[2]232        -@rm -f $(DIRTMP)/template_db.xml
233
[55]234dbkcheck :
235        @-rm $(DIRTMP)/err_xmlstarlet_xsd 2> /dev/null
[64]236        @-for file in $(DIRTMP)/biblio.xml $(DIRTMP)/*_full.xml $(DIRTMP)/select_id.xml $(DIRTMP)/$(PRODUCT)01.xml $(DIRTMP)/$(PRODUCT)02.xml $(DIRTMP)/$(PRODUCT)many01.xml $(DIRTMP)/$(PRODUCT)many02.xml $(DIRTMP)/user_db.xml $(DIRTMP)/template_db.xml; do \
[55]237        xml val --err \
238        --xsd http://www.docbook.org/xml/5.0/xsd/docbook.xsd \
239        $${file} 1>> $(DIRTMP)/err_xmlstarlet_xsd 2>&1; done
240        @echo "check for valid diag for each file in $(DIRTMP)/err_xmlstarlet_xsd"
241
[54]242all : \
[57]243html
244
245html : \
[54]246html_en
247
[84]248design : \
249$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.png \
250$(DIRDESIGN)/images/$(PRODUCT)_fulldependencies.svg
[36]251
[26]252htmllinkcheckb :
253        @linkchecker.sh -d $(DIRWWW)
254
255htmllinkchecka :
256        @linkchecker.sh -d $(DIRPUBLISH)
[54]257        @linkchecker.sh -u $(URLPUBLISH)
[26]258
[2]259html_en : \
[39]260$(DIRWWW)/en/one/main.php \
[2]261$(DIRWWW)/en/one/template.php \
[40]262$(DIRWWW)/en/one/$(PRODUCT)00.html \
[39]263$(DIRWWW)/en/one/$(PRODUCT)01.html \
264$(DIRWWW)/en/one/$(PRODUCT)02.html \
265$(DIRWWW)/en/many/$(PRODUCT)01/ \
266$(DIRWWW)/en/many/$(PRODUCT)02/ \
[32]267$(DIRWWW)/en/one/user.html
[2]268
[38]269pdf_en : \
[39]270$(DIRTMP)/$(PRODUCT)01.pdf \
271$(DIRTMP)/$(PRODUCT)02.pdf
[2]272
[40]273$(DIRWWW)/en/one/$(PRODUCT)00.html : \
[64]274$(DIRTMP)/biblio.xml
[2]275        @xsltproc \
[29]276        --output $@ \
[2]277        http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \
[93]278        $<
[2]279
[39]280$(DIRWWW)/en/one/main.php : \
[93]281$(DIRTMP)/main_full.xml \
[40]282$(DIRSRC)/$(PRODUCT).css \
[2]283$(DIRSRC)/style.css \
[39]284$(DIRSRC)/main_html.xsl \
[58]285$(DIRSRC)/message_lang.xsl \
[40]286$(DIRTMP)/titlepage.$(PRODUCT).xsl \
[93]287$(DIRSRC)/form_html.xsl
[2]288        @xsltproc \
289        $(XSLPARAMHTML) \
[30]290        --output $@ \
[39]291        $(DIRSRC)/main_html.xsl \
[93]292        $<
[2]293
[39]294$(DIRWWW)/en/one/$(PRODUCT)01.html : \
[93]295$(DIRTMP)/$(PRODUCT)01.xml \
[54]296$(DIRWWW)/images/years.png \
[40]297$(DIRSRC)/$(PRODUCT).css \
[2]298$(DIRSRC)/style.css \
[39]299$(DIRSRC)/$(PRODUCT)01_html.xsl \
[58]300$(DIRSRC)/message_lang.xsl \
[94]301$(DIRTMP)/titlepage.$(PRODUCT).xsl
[2]302        @xsltproc \
303        $(XSLPARAMHTML) \
[30]304        --output $@ \
[39]305        $(DIRSRC)/$(PRODUCT)01_html.xsl \
[93]306        $<
[2]307
[39]308$(DIRTMP)/$(PRODUCT)01.xml : \
[93]309$(DIRTMP)/biblio.xml \
[39]310$(DIRSRC)/$(PRODUCT)01_xml.xsl \
[57]311$(DIRSRC)/message_lang.xsl \
[93]312$(DIRSRC)/biblioentry_xml.xsl
[2]313        @xsltproc \
[30]314        --output $@ \
[39]315        $(DIRSRC)/$(PRODUCT)01_xml.xsl \
[93]316        $<
[2]317
[39]318$(DIRWWW)/en/one/$(PRODUCT)02.html : \
[93]319$(DIRTMP)/$(PRODUCT)02.xml \
[40]320$(DIRSRC)/$(PRODUCT).css \
[2]321$(DIRSRC)/style.css \
[39]322$(DIRSRC)/$(PRODUCT)01_html.xsl \
[58]323$(DIRSRC)/message_lang.xsl \
[93]324$(DIRTMP)/titlepage.$(PRODUCT).xsl
[2]325        @xsltproc \
326        $(XSLPARAMHTML) \
[30]327        --output $@ \
[39]328        $(DIRSRC)/$(PRODUCT)01_html.xsl \
[93]329        $<
[2]330
[39]331$(DIRWWW)/en/many/$(PRODUCT)02/ : \
[93]332$(DIRTMP)/$(PRODUCT)many02.xml \
[40]333$(DIRSRC)/$(PRODUCT).css \
[2]334$(DIRSRC)/style.css \
[38]335$(DIRSRC)/$(PRODUCT)many02_html.xsl \
[58]336$(DIRSRC)/message_lang.xsl \
[55]337$(DIRTMP)/titlepage.$(PRODUCT).xsl \
[93]338$(DIRSRC)/form_html.xsl
[2]339        @xsltproc \
340        $(XSLPARAMHTML) \
341        --param html.ext "'.php'" \
[54]342        --param base.dir "'$@/'" \
[38]343        $(DIRSRC)/$(PRODUCT)many02_html.xsl \
[93]344        $<
[2]345        # affreux sed
[77]346        @for file in $(DIRWWW)/en/many/$(PRODUCT)02/*.php; do \
[76]347         $(DIRSRC)/insertphp.sh -i $${file} -o $${file}_sed \
348         -s $(DIRSRC)/insertphp_many.sed \
349         -d 3; \
[2]350         mv $${file}_sed $${file} ; \
351        done
[55]352        @touch $@/
[2]353
[55]354$(DIRTMP)/$(PRODUCT)many02.xml : \
[93]355$(DIRTMP)/biblio.xml \
[38]356$(DIRSRC)/$(PRODUCT)many02_xml.xsl \
[58]357$(DIRSRC)/message_lang.xsl \
[55]358$(DIRSRC)/form_db.xsl \
359$(DIRSRC)/compilers_db.xsl \
360$(DIRSRC)/components_db.xsl \
361$(DIRSRC)/platforms_db.xsl \
362$(DIRSRC)/personal_db.xsl \
363$(DIRSRC)/comments_db.xsl \
364$(DIRSRC)/newreferences_db.xsl \
365$(DIRSRC)/processors_db.xsl \
366$(DIRSRC)/biblioentry_xml.xsl \
367$(DIRSRC)/correction_db.xsl \
368$(DIRSRC)/firstname_id.xsl \
[94]369$(DIRSRC)/surname_id.xsl
[2]370        @xsltproc \
371        --param html.ext "'.php'" \
[56]372        --param link.mailto.url "'mailto:opatlod@locean-ipsl.upmc.fr'" \
[30]373        --output $@ \
[38]374        $(DIRSRC)/$(PRODUCT)many02_xml.xsl \
[93]375        $<
[2]376
[39]377$(DIRWWW)/en/many/$(PRODUCT)01/ : \
[93]378$(DIRTMP)/$(PRODUCT)many01.xml \
[40]379$(DIRSRC)/$(PRODUCT).css \
[2]380$(DIRSRC)/style.css \
[38]381$(DIRSRC)/$(PRODUCT)many01_html.xsl \
[58]382$(DIRSRC)/message_lang.xsl \
[93]383$(DIRTMP)/titlepage.$(PRODUCT).xsl
[2]384        @xsltproc \
385        $(XSLPARAMHTML) \
[54]386        --param base.dir "'$@/'" \
[38]387        $(DIRSRC)/$(PRODUCT)many01_html.xsl \
[93]388        $<
[55]389        @touch $@/
[2]390
[55]391$(DIRTMP)/$(PRODUCT)many01.xml : \
[93]392$(DIRTMP)/biblio.xml \
[38]393$(DIRSRC)/$(PRODUCT)many01_xml.xsl \
[58]394$(DIRSRC)/message_lang.xsl \
[55]395$(DIRSRC)/firstname_id.xsl \
396$(DIRSRC)/surname_id.xsl \
397$(DIRSRC)/table_authors.xsl \
398$(DIRSRC)/biblioentry_xml.xsl \
[93]399$(DIRSRC)/correction_db.xsl
[2]400        @xsltproc \
401        --param html.ext "'.html'" \
[30]402        --output $@ \
[38]403        $(DIRSRC)/$(PRODUCT)many01_xml.xsl \
[93]404        $<
[2]405
[39]406$(DIRTMP)/$(PRODUCT)02.xml : \
[93]407$(DIRTMP)/biblio.xml \
[39]408$(DIRSRC)/$(PRODUCT)02_xml.xsl \
[58]409$(DIRSRC)/message_lang.xsl \
[55]410$(DIRSRC)/firstname_id.xsl \
411$(DIRSRC)/surname_id.xsl \
412$(DIRSRC)/table_authors.xsl \
413$(DIRSRC)/biblioentry_xml.xsl \
[93]414$(DIRSRC)/correction_db.xsl
[2]415        @xsltproc \
416        --param html.ext "'.html'" \
[30]417        --output $@ \
[39]418        $(DIRSRC)/$(PRODUCT)02_xml.xsl \
[93]419        $<
[2]420
[40]421$(DIRTMP)/titlepage.$(PRODUCT).xsl : \
422$(DIRSRC)/titlepage.$(PRODUCT).xml
[2]423        @xsltproc \
[30]424        --output $@ \
[2]425        http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \
[93]426        $<
[2]427
428$(DIRWWW)/images/years.png : \
[53]429$(DIRTMP)/years.ploticus
[93]430        @ploticus -o $@ png $<
[2]431
[53]432$(DIRTMP)/years.ploticus : \
[93]433$(DIRTMP)/biblio.xml \
[53]434$(DIRSRC)/years_ploticus.xsl \
[55]435$(DIRSRC)/biblioentry_xml.xsl \
[93]436$(DIRSRC)/message_lang.xsl
[2]437        @xsltproc \
[56]438        --param makedate "'$(MAKEDATE)'" \
[30]439        --output $@ \
[53]440        $(DIRSRC)/years_ploticus.xsl \
[93]441        $<
[2]442
[39]443$(DIRTMP)/$(PRODUCT)01.pdf : \
[93]444$(DIRTMP)/$(PRODUCT)01.xml \
445$(DIRSRC)/$(PRODUCT)_pdf.xsl
[2]446        @dblatex \
447        -b pdftex \
448        -T simple \
[29]449        -o $@ \
[2]450        -d \
451        -x "--nonet" \
[40]452        -p $(DIRSRC)/$(PRODUCT)_pdf.xsl \
[93]453        $< \
[39]454        1> $(DIRTMP)/$(PRODUCT)01_dblatex.log \
455        2> $(DIRTMP)/$(PRODUCT)01_dblatex.err
[2]456
[39]457$(DIRTMP)/$(PRODUCT)02.pdf : \
[93]458$(DIRTMP)/biblio.xml \
459$(DIRSRC)/$(PRODUCT)_pdf.xsl
[2]460        @dblatex \
461        -b pdftex \
462        -T simple \
[29]463        -o $@ \
[2]464        -d \
465        -x "--nonet" \
[40]466        -p $(DIRSRC)/$(PRODUCT)_pdf.xsl \
[93]467        $< \
[39]468        1> $(DIRTMP)/$(PRODUCT)02_dblatex.log \
469        2> $(DIRTMP)/$(PRODUCT)02_dblatex.err
[2]470
[39]471$(DIRTMP)/main_full.xml : \
472$(DIRSRC)/main.xml \
[2]473$(DIRSRC)/select_form.php \
474$(DIRTMP)/select_id.xml
475        @xmllint \
476        --xinclude \
477        --nonet \
[29]478        --output $@ \
[93]479        $<
[2]480
481$(DIRTMP)/select_id.xml : \
[93]482$(DIRTMP)/biblio.xml \
[2]483$(DIRSRC)/select_id.xsl \
[55]484$(DIRSRC)/firstname_id.xsl \
[94]485$(DIRSRC)/surname_id.xsl
[2]486        @xsltproc \
[30]487        --output $@ \
[2]488        $(DIRSRC)/select_id.xsl \
[93]489        $<
[2]490
[32]491$(DIRWWW)/en/one/user.html : \
[93]492$(DIRTMP)/user_db.xml \
[40]493$(DIRSRC)/$(PRODUCT).css \
[2]494$(DIRSRC)/style.css \
[32]495$(DIRSRC)/user_html.xsl \
[58]496$(DIRSRC)/message_lang.xsl \
[55]497$(DIRTMP)/titlepage.$(PRODUCT).xsl \
[93]498$(DIRSRC)/form_html.xsl
[2]499        @xsltproc \
500        $(XSLPARAMHTML) \
[30]501        --output $@ \
[32]502        $(DIRSRC)/user_html.xsl \
[93]503        $<
[2]504
[32]505$(DIRTMP)/user_db.xml : \
[93]506$(DIRTMP)/user.xml \
[32]507$(DIRSRC)/user_db.xsl \
[58]508$(DIRSRC)/message_lang.xsl \
[55]509$(DIRSRC)/components_db.xsl \
510$(DIRSRC)/compilers_db.xsl \
511$(DIRSRC)/platforms_db.xsl \
[93]512$(DIRSRC)/processors_db.xsl
[2]513        @xsltproc \
[30]514        --output $@ \
[32]515        $(DIRSRC)/user_db.xsl \
[93]516        $<
[2]517
[64]518$(DIRTMP)/user.xml : \
519$(DIRTMP)/user.dtd
[94]520        -@xmllint --noout --valid $@
[2]521
522$(DIRWWW)/en/one/template.php : \
[54]523$(DIRTMP)/template_beforesed.php
[2]524        # affreux sed
[93]525        @$(DIRSRC)/insertphp.sh -i $< \
[76]526        -o $@ \
527        -s $(DIRSRC)/insertphp_one.sed \
528        -d 2
[2]529
[54]530$(DIRTMP)/template_beforesed.php : \
[93]531$(DIRTMP)/template_db.xml \
[40]532$(DIRSRC)/$(PRODUCT).css \
[2]533$(DIRSRC)/style.css \
[39]534$(DIRSRC)/main_html.xsl \
[58]535$(DIRSRC)/message_lang.xsl \
[55]536$(DIRTMP)/titlepage.$(PRODUCT).xsl \
[94]537$(DIRSRC)/form_html.xsl
[2]538        @xsltproc \
539        $(XSLPARAMHTML) \
540        --param html.ext "'.php'" \
[30]541        --output $@ \
[39]542        $(DIRSRC)/main_html.xsl \
[93]543        $<
[2]544
545$(DIRTMP)/template_db.xml : \
[64]546$(DIRTMP)/user.xml \
[55]547$(DIRSRC)/template_db.xsl \
[58]548$(DIRSRC)/message_lang.xsl \
[55]549$(DIRSRC)/form_db.xsl \
[35]550$(DIRSRC)/compilers_db.xsl \
551$(DIRSRC)/components_db.xsl \
[2]552$(DIRSRC)/platforms_db.xsl \
[35]553$(DIRSRC)/personal_db.xsl \
[2]554$(DIRSRC)/comments_db.xsl \
555$(DIRSRC)/newreferences_db.xsl \
[21]556$(DIRSRC)/processors_db.xsl \
[55]557$(DIRSRC)/biblioentry_xml.xsl \
[2]558$(DIRSRC)/correction_db.xsl
[55]559        @xsltproc \
[56]560        --param link.mailto.url "'mailto:opatlod@locean-ipsl.upmc.fr'" \
[55]561        --output $@ \
562        $(DIRSRC)/template_db.xsl \
[93]563        $<
[2]564
[93]565$(DIRDESIGN)/images/%.png : $(DIRDESIGN)/images/%.svg
566        @convert $< $@
[36]567
[93]568$(DIRDESIGN)/images/%.svg : $(DIRDESIGN)/%.dot
569        @dot -Tsvg -o $@ $<
[37]570
[84]571$(DIRDESIGN)/$(PRODUCT)_fulldependencies.dot : \
[36]572$(DIRSRC)/makefile
[94]573        @makeppgraph --graphviz --output=$@
[64]574
575
576test : \
577test_raw
578
579test_raw : \
[66]580test_raw_demo1_1 \
581test_raw_demo1_2 \
[67]582test_raw_demo1_2_tex \
[65]583test_raw_nemo1 \
584test_raw_nemoall
[64]585
[66]586test_raw_demo1_1 : \
[64]587$(DIRSRC)/data/bibdemo1_dbk5.xml \
[66]588$(DIRTMP)/bibdemo1_dbk5_1.xml \
589$(DIRTMP)/bibdemo1_dbk5_1.txt
[67]590        @echo "test from xml to xml via raw form"
[66]591        diff -b $(DIRTMP)/bibdemo1_dbk5_1.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more
592        rm -i $(DIRTMP)/bibdemo1_dbk5_1.xml $(DIRTMP)/bibdemo1_dbk5_1.txt
[64]593
[66]594$(DIRTMP)/bibdemo1_dbk5_1.txt : \
[64]595$(DIRSRC)/data/bibdemo1_dbk5.xml \
[66]596$(DIRSRC)/superbib01_txt.xsl \
597$(DIRSRC)/biblioentry_xml.xsl
[65]598        xsltproc --param makedate "'$(MAKEDATE)'" \
[64]599        --output $@ \
600        $(DIRSRC)/superbib01_txt.xsl \
[93]601        $<
[64]602
[66]603$(DIRTMP)/bibdemo1_dbk5_1.xml : \
604$(DIRTMP)/bibdemo1_dbk5_1.txt \
[64]605$(DIRSRC)/bibopa.sh
[93]606        $(DIRSRC)/bibopa.sh -p demo1 -i $< -t raw -l fr
[64]607
[67]608test_raw_demo1_2_tex : \
609$(DIRTMP)/bibdemo1_dbk5_2.dvi
610        @echo "test from xml to latex via bibtex form"
611
612$(DIRTMP)/bibdemo1_dbk5_2.dvi : \
613$(DIRTMP)/bibdemo1_dbk5_2.tex \
614$(DIRTMP)/bibdemo1_dbk5_2.bib
615        cd $(DIRTMP)/
616        latex bibdemo1_dbk5_2
617        bibtex bibdemo1_dbk5_2
618        latex bibdemo1_dbk5_2
619
620$(DIRTMP)/bibdemo1_dbk5_2.tex : \
621$(DIRSRC)/data/superbib01.tex
622        @sed -e "s/bibliography{superbib01}/bibliography{bibdemo1_dbk5_2}/" \
[93]623        $< > $(DIRTMP)/bibdemo1_dbk5_2.tex
[67]624       
[66]625test_raw_demo1_2 : \
626$(DIRSRC)/data/bibdemo1_dbk5.xml \
627$(DIRTMP)/bibdemo1_dbk5_2.xml \
[67]628$(DIRTMP)/bibdemo1_dbk5_2.bib
629        @echo "test from xml to xml via bibtex form"
[66]630        diff -b $(DIRTMP)/bibdemo1_dbk5_2.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more
[67]631        rm -i $(DIRTMP)/bibdemo1_dbk5_2.xml $(DIRTMP)/bibdemo1_dbk5_2.bib
[66]632
[67]633$(DIRTMP)/bibdemo1_dbk5_2.bib : \
[66]634$(DIRSRC)/data/bibdemo1_dbk5.xml \
635$(DIRSRC)/superbib02_txt.xsl \
636$(DIRSRC)/biblioentry_xml.xsl
637        xsltproc --param makedate "'$(MAKEDATE)'" \
638        --output $@ \
639        $(DIRSRC)/superbib02_txt.xsl \
[93]640        $<
[66]641
642$(DIRTMP)/bibdemo1_dbk5_2.xml : \
[67]643$(DIRTMP)/bibdemo1_dbk5_2.bib \
[68]644$(DIRSRC)/bibopa.sh \
645$(DIRSRC)/bibtexml2dbk.xsl \
646$(DIRSRC)/external/bibtex2xml.py
[93]647        $(DIRSRC)/bibopa.sh -p demo1 -i $< -t bibtex -o fs -l fr
[66]648
[65]649test_raw_nemo1 : \
650$(DIRSRC)/data/bibnemo1.xml \
651$(DIRTMP)/bibnemo1.xml \
652$(DIRTMP)/bibnemo1.txt
653        diff -b $(DIRTMP)/bibnemo1.xml $(DIRSRC)/data/bibnemo1.xml | more
654        rm -i $(DIRTMP)/bibnemo1.xml $(DIRTMP)/bibnemo1.txt
655
656$(DIRTMP)/bibnemo1.txt : \
657$(DIRSRC)/data/bibnemo1.xml \
[66]658$(DIRSRC)/superbib01_txt.xsl \
659$(DIRSRC)/biblioentry_xml.xsl
[65]660        xsltproc --param makedate "'$(MAKEDATE)'" \
661        --output $@ \
662        $(DIRSRC)/superbib01_txt.xsl \
[93]663        $<
[65]664
665$(DIRTMP)/bibnemo1.xml : \
666$(DIRTMP)/bibnemo1.txt \
667$(DIRSRC)/bibopa.sh
[93]668        $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en
[65]669
670test_raw_nemoall : \
[64]671$(DIRSRC)/data/biball.xml \
[65]672$(DIRTMP)/bibnemoall.xml \
673$(DIRTMP)/bibnemoall.txt
674        diff -b $(DIRTMP)/bibnemoall.xml $(DIRSRC)/data/biball.xml | more
675        rm -i $(DIRTMP)/bibnemoall.xml $(DIRTMP)/bibnemoall.txt
[64]676
[65]677$(DIRTMP)/bibnemoall.txt : \
[64]678$(DIRSRC)/data/biball.xml \
[66]679$(DIRSRC)/superbib01_txt.xsl \
680$(DIRSRC)/biblioentry_xml.xsl
[65]681        xsltproc --param makedate "'$(MAKEDATE)'" \
[64]682        --output $@ \
683        $(DIRSRC)/superbib01_txt.xsl \
[93]684        $<
[64]685
[65]686$(DIRTMP)/bibnemoall.xml : \
687$(DIRTMP)/bibnemoall.txt \
[64]688$(DIRSRC)/bibopa.sh
[93]689        $(DIRSRC)/bibopa.sh -p nemo -i $< -t raw -l en
[76]690
691test_demo1 :
692        ln -sf $(DIRSRC)/data/bibdemo1_dbk5.xml $(DIRTMP)/biblio.xml
693        ln -sf $(DIRSRC)/data/userdemo1.xml $(DIRTMP)/user.xml
694        ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd
695        make -f $(DIRSRC)/makefile clean
696        make -f $(DIRSRC)/makefile before
697        make -f $(DIRSRC)/makefile html
698
699test_nemo1 :
700        ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml
701        ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml
702        ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd
703        make -f $(DIRSRC)/makefile clean
704        make -f $(DIRSRC)/makefile before
705        make -f $(DIRSRC)/makefile html
Note: See TracBrowser for help on using the repository browser.