source: trunk/makefile @ 164

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

going on with restsuperbibmany01_xml.xsl

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