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