source: trunk/makefile @ 151

Last change on this file since 151 was 151, checked in by pinsard, 12 years ago

progress on rest procesing

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