source: trunk/SRC/Documentation/xmldoc/makefile @ 350

Last change on this file since 350 was 350, checked in by pinsard, 16 years ago

improve links in wiki files

  • Property svn:keywords set to Id
File size: 15.4 KB
Line 
1#
2# module :
3# generation of documentations from XML files (and some IDL files) in HTML and
4# wiki forms
5#
6# original location :
7# /Users/fplod/SAXO_DIR_ws/SRC/Documentation/xmldoc/makefile sur aedon.locean-ipsl.upmc.fr
8#
9# update :
10# ++ wiki production not ready
11# $Id$
12# fplod 2008-04-16T10:06:39Z aedon.locean-ipsl.upmc.fr (Darwin)
13# working on wiki production using
14# http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html
15# fplod 2008-04-15T15:37:59Z aedon.locean-ipsl.upmc.fr (Darwin)
16# java is not ok now :
17# http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl; Ligne #53; Colonne #35; XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: keywords.xsl
18# replaced by xsltproc which is now ok for callouts
19# fplod 2008-04-15T08:10:09Z aedon.locean-ipsl.upmc.fr (Darwin)
20# add xml validation using xmlstarlet
21# fplod 2007-06-27T10:07:59Z aedon.locean-ipsl.upmc.fr (Darwin)
22# creation in order to replace makehtml.sh
23#
24PRODUCT = \
25saxo
26
27DIRBASE = \
28./
29
30DIRSRC = \
31$(DIRBASE)
32
33DIRTMP = \
34./
35
36DIRWWW = \
37./
38
39DIRWIKI = \
40./wiki/
41
42help :
43        @echo "\$$ make clean"
44        @echo "\$$ make all"
45        @echo "\$$ make dbkcheck"
46        @echo "++ check link"
47        @echo "++ depot html et wiki"
48
49clean :
50        -@rm -f $(DIRTMP)/*_full.xml
51        -@rm -f $(DIRTMP)/err_xmlstarlet_xsd
52        -@rm -f $(DIRTMP)/rowscm.xml
53        -@rm -f $(DIRTMP)/rowskwd.xml
54        -@rm -f $(DIRTMP)/all_plots.xml
55
56dbkcheck :
57        @-rm $(DIRTMP)/err_xmlstarlet_xsd 2> /dev/null
58        @for file in $(DIRTMP)/*_full.xml $(DIRTMP)/all_plots.xml; do \
59        xml val --err \
60        --xsd http://www.docbook.org/xml/5.0/xsd/docbook.xsd \
61        $${file} 1>> $(DIRTMP)/err_xmlstarlet_xsd 2>&1; done
62        @echo "check for valid diag for each file in $(DIRTMP)/err_xmlstarlet_xsd"
63
64all : \
65html \
66tracwiki
67
68html : \
69$(DIRWWW)/getsaxo.html \
70$(DIRWWW)/websaxo.html \
71$(DIRWWW)/whatsnew.html \
72$(DIRWWW)/updatesaxo.html \
73$(DIRWWW)/whatissaxo.html \
74$(DIRWWW)/faqsaxo.html \
75$(DIRWWW)/infoupdatekwd.html \
76$(DIRWWW)/infoupdatecm.html \
77$(DIRWWW)/mailing.html \
78$(DIRWWW)/tiplink.html \
79$(DIRWWW)/mini_notice.html \
80$(DIRWWW)/firststeps.html \
81$(DIRWWW)/all_plots.html
82
83tracwiki : \
84$(DIRWIKI)/AllPlots \
85$(DIRWIKI)/GetSaxo \
86$(DIRWIKI)/WebSaxo \
87$(DIRWIKI)/WikiStart \
88$(DIRWIKI)/FaqSaxo \
89$(DIRWIKI)/FirstSteps \
90$(DIRWIKI)/InfoUpdateKwd \
91$(DIRWIKI)/InfoUpdateCm \
92$(DIRWIKI)/Mailing \
93$(DIRWIKI)/MiniNotice \
94$(DIRWIKI)/TipLink \
95$(DIRWIKI)/WhatisSaxo \
96$(DIRWIKI)/UpdateSaxo \
97$(DIRWIKI)/WhatsNew
98        @echo "Do not forget to import wiki pages"
99        @echo "\$$ ssh $(PRODUCT)@forge.ipsl.jussieu.fr mkdir -p /tmp/wiki/$(PRODUCT)/"
100        @echo "\$$ rsync -av --exclude=".DS_Store" --exclude=".svn" $(DIRWIKI) $(PRODUCT)@forge.ipsl.jussieu.fr:/tmp/wiki/$(PRODUCT)/"
101        @echo "\$$ ssh $(PRODUCT)@forge.ipsl.jussieu.fr trac-admin /ipsl/forge/projets/$(PRODUCT)/trac wiki load /tmp/wiki/$(PRODUCT)/"
102
103        @echo "\$$ ssh $(PRODUCT)@forge.ipsl.jussieu.fr rmdir -f /tmp/wiki/$(PRODUCT)/"
104
105$(DIRWIKI)/WebSaxo : \
106$(DIRSRC)/linkwiki.sed \
107$(DIRWWW)/websaxo.html
108        @echo "{{{" > $@
109        @echo "#!html" >> $@
110        @xml sel -N x="http://www.w3.org/1999/xhtml" \
111        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/websaxo.html | \
112        sed -f $(DIRSRC)/linkwiki.sed \
113        >> $@
114        @echo "}}}" >> $@
115
116$(DIRWIKI)/WikiStart : \
117$(DIRSRC)/linkwiki.sed \
118$(DIRWWW)/websaxo.html
119        @echo "{{{" > $@
120        @echo "#!html" >> $@
121        @xml sel -N x="http://www.w3.org/1999/xhtml" \
122        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/websaxo.html | \
123        sed -f $(DIRSRC)/linkwiki.sed | \
124        xml ed -N x="http://www.w3.org/1999/xhtml" \
125        -d "//x:div[@class='authorgroup']" \
126        -d "//x:div[@class='revhistory']" \
127        -d "//x:div[@class='toc']" \
128        >> $@
129        @echo "}}}" >> $@
130
131$(DIRWWW)/websaxo.html : \
132$(DIRTMP)/websaxo_full.xml \
133$(DIRSRC)/saxo_html.xsl \
134$(DIRSRC)/style.css \
135$(DIRSRC)/$(PRODUCT).css
136        @xsltproc \
137        --param html.stylesheet "'style.css $(PRODUCT).css'" \
138        --param css.decoration 1 \
139        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
140        --param section.autolabel 1 \
141        --output $@ \
142        $(DIRSRC)/saxo_html.xsl \
143        $(DIRTMP)/websaxo_full.xml
144
145$(DIRTMP)/websaxo_full.xml : \
146$(DIRSRC)/websaxo.xml
147        @xmllint \
148        --xinclude \
149        --encode utf-8 \
150        --noent \
151        --output $@ \
152        $(DIRSRC)/websaxo.xml
153
154$(DIRWIKI)/FaqSaxo : \
155$(DIRSRC)/linkwiki.sed \
156$(DIRWWW)/faqsaxo.html
157        @echo "{{{" > $@
158        @echo "#!html" >> $@
159        @xml sel -N x="http://www.w3.org/1999/xhtml" \
160        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/faqsaxo.html | \
161        sed -f $(DIRSRC)/linkwiki.sed \
162        >> $@
163        @echo "}}}" >> $@
164
165$(DIRWWW)/faqsaxo.html : \
166$(DIRTMP)/faqsaxo_full.xml \
167$(DIRSRC)/saxo_html.xsl \
168$(DIRSRC)/style.css \
169$(DIRSRC)/$(PRODUCT).css
170        @xsltproc \
171        --param html.stylesheet "'style.css $(PRODUCT).css'" \
172        --param css.decoration 1 \
173        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
174        --param section.autolabel 1 \
175        --output $@ \
176        $(DIRSRC)/saxo_html.xsl \
177        $(DIRTMP)/faqsaxo_full.xml
178
179$(DIRTMP)/faqsaxo_full.xml : \
180$(DIRSRC)/faqsaxo.xml
181        @xmllint \
182        --xinclude \
183        --encode utf-8 \
184        --noent \
185        --output $@ \
186        $(DIRSRC)/faqsaxo.xml
187
188$(DIRWIKI)/GetSaxo : \
189$(DIRSRC)/linkwiki.sed \
190$(DIRWWW)/getsaxo.html
191        @echo "{{{" > $@
192        @echo "#!html" >> $@
193        @xml sel -N x="http://www.w3.org/1999/xhtml" \
194        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/getsaxo.html | \
195        sed -f $(DIRSRC)/linkwiki.sed \
196        >> $@
197        @echo "}}}" >> $@
198
199$(DIRWWW)/getsaxo.html : \
200$(DIRTMP)/getsaxo_full.xml \
201$(DIRSRC)/saxo_html.xsl \
202$(DIRSRC)/style.css \
203$(DIRSRC)/$(PRODUCT).css
204        @xsltproc \
205        --param html.stylesheet "'style.css $(PRODUCT).css'" \
206        --param css.decoration 1 \
207        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
208        --param section.autolabel 1 \
209        --output $@ \
210        $(DIRSRC)/saxo_html.xsl \
211        $(DIRTMP)/getsaxo_full.xml
212
213$(DIRTMP)/getsaxo_full.xml : \
214$(DIRSRC)/getsaxo.xml \
215$(DIRSRC)/getsaxo_pre.sh
216        @$(DIRSRC)/getsaxo_pre.sh
217        @xmllint \
218        --xinclude \
219        --encode utf-8 \
220        --noent \
221        --output $@ \
222        $(DIRTMP)/getsaxo_sed.xml
223
224$(DIRWIKI)/FirstSteps : \
225$(DIRSRC)/linkwiki.sed \
226$(DIRWWW)/firststeps.html
227        @echo "{{{" > $@
228        @echo "#!html" >> $@
229        @xml sel -N x="http://www.w3.org/1999/xhtml" \
230        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/firststeps.html | \
231        sed -f $(DIRSRC)/linkwiki.sed \
232        >> $@
233        @echo "}}}" >> $@
234
235$(DIRWWW)/firststeps.html : \
236$(DIRTMP)/firststeps_full.xml \
237$(DIRSRC)/saxo_html.xsl \
238$(DIRSRC)/style.css \
239$(DIRSRC)/$(PRODUCT).css
240        @xsltproc \
241        --param html.stylesheet "'style.css $(PRODUCT).css'" \
242        --param css.decoration 1 \
243        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
244        --param section.autolabel 1 \
245        --output $@ \
246        $(DIRSRC)/saxo_html.xsl \
247        $(DIRTMP)/firststeps_full.xml
248
249$(DIRWIKI)/AllPlots : \
250$(DIRSRC)/linkwiki.sed \
251$(DIRWWW)/all_plots.html
252        @echo "{{{" > $@
253        @echo "#!html" >> $@
254        @xml sel -N x="http://www.w3.org/1999/xhtml" \
255        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/all_plots.html | \
256        sed -f $(DIRSRC)/linkwiki.sed \
257        >> $@
258        @echo "}}}" >> $@
259
260$(DIRWWW)/all_plots.html : \
261$(DIRTMP)/all_plots.xml \
262$(DIRSRC)/saxo_html.xsl \
263$(DIRSRC)/style.css \
264$(DIRSRC)/$(PRODUCT).css
265        @xsltproc \
266        --param html.stylesheet "'style.css $(PRODUCT).css'" \
267        --param css.decoration 1 \
268        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
269        --param section.autolabel 1 \
270        --output $@ \
271        $(DIRSRC)/saxo_html.xsl \
272        $(DIRTMP)/all_plots.xml
273
274
275$(DIRTMP)/all_plots.xml : \
276$(DIRSRC)/all_plots_docbook.xsl \
277$(DIRTMP)/firststeps_full.xml
278        @xsltproc \
279        --output $@ \
280        $(DIRSRC)/all_plots_docbook.xsl \
281        $(DIRTMP)/firststeps_full.xml
282
283$(DIRTMP)/firststeps_full.xml : \
284$(DIRSRC)/firststeps.xml \
285$(DIRSRC)/firststeps_pre.sh
286        @$(DIRSRC)/firststeps_pre.sh
287        @xmllint \
288        --xinclude \
289        --encode utf-8 \
290        --noent \
291        --output $@ \
292        $(DIRTMP)/firststeps_sed.xml
293        @rm $(DIRTMP)/firststeps_sed.xml 2> /dev/null
294
295$(DIRWIKI)/Mailing : \
296$(DIRSRC)/linkwiki.sed \
297$(DIRWWW)/mailing.html
298        @echo "{{{" > $@
299        @echo "#!html" >> $@
300        @xml sel -N x="http://www.w3.org/1999/xhtml" \
301        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/mailing.html | \
302        sed -f $(DIRSRC)/linkwiki.sed \
303        >> $@
304        @echo "}}}" >> $@
305
306$(DIRWWW)/mailing.html : \
307$(DIRTMP)/mailing_full.xml \
308$(DIRSRC)/saxo_html.xsl \
309$(DIRSRC)/style.css \
310$(DIRSRC)/$(PRODUCT).css
311        @xsltproc \
312        --param html.stylesheet "'style.css $(PRODUCT).css'" \
313        --param css.decoration 1 \
314        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
315        --param section.autolabel 1 \
316        --output $@ \
317        $(DIRSRC)/saxo_html.xsl \
318        $(DIRTMP)/mailing_full.xml
319
320$(DIRTMP)/mailing_full.xml : \
321$(DIRSRC)/mailing.xml
322        @xmllint \
323        --xinclude \
324        --encode utf-8 \
325        --noent \
326        --output $@ \
327        $(DIRSRC)/mailing.xml
328
329$(DIRWIKI)/MiniNotice : \
330$(DIRSRC)/linkwiki.sed \
331$(DIRWWW)/mini_notice.html
332        @echo "{{{" > $@
333        @echo "#!html" >> $@
334        @xml sel -N x="http://www.w3.org/1999/xhtml" \
335        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/mini_notice.html | \
336        sed -f $(DIRSRC)/linkwiki.sed \
337        >> $@
338        @echo "}}}" >> $@
339
340$(DIRWWW)/mini_notice.html : \
341$(DIRTMP)/mini_notice_full.xml \
342$(DIRSRC)/saxo_html.xsl \
343$(DIRSRC)/style.css \
344$(DIRSRC)/$(PRODUCT).css
345        @xsltproc \
346        --param html.stylesheet "'style.css $(PRODUCT).css'" \
347        --param css.decoration 1 \
348        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
349        --param section.autolabel 1 \
350        --output $@ \
351        $(DIRSRC)/saxo_html.xsl \
352        $(DIRTMP)/mini_notice_full.xml
353
354$(DIRTMP)/mini_notice_full.xml : \
355$(DIRSRC)/mini_notice.xml
356        @xmllint \
357        --xinclude \
358        --encode utf-8 \
359        --noent \
360        --output $@ \
361        $(DIRSRC)/mini_notice.xml
362
363$(DIRWIKI)/TipLink : \
364$(DIRSRC)/linkwiki.sed \
365$(DIRWWW)/tiplink.html
366        @echo "{{{" > $@
367        @echo "#!html" >> $@
368        @xml sel -N x="http://www.w3.org/1999/xhtml" \
369        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/tiplink.html | \
370        sed -f $(DIRSRC)/linkwiki.sed \
371        >> $@
372        @echo "}}}" >> $@
373
374$(DIRWWW)/tiplink.html : \
375$(DIRTMP)/tiplink_full.xml \
376$(DIRSRC)/saxo_html.xsl \
377$(DIRSRC)/style.css \
378$(DIRSRC)/$(PRODUCT).css
379        @xsltproc \
380        --param html.stylesheet "'style.css $(PRODUCT).css'" \
381        --param css.decoration 1 \
382        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
383        --param section.autolabel 1 \
384        --output $@ \
385        $(DIRSRC)/saxo_html.xsl \
386        $(DIRTMP)/tiplink_full.xml
387
388$(DIRTMP)/tiplink_full.xml : \
389$(DIRSRC)/tiplink.xml
390        @xmllint \
391        --xinclude \
392        --encode utf-8 \
393        --noent \
394        --output $@ \
395        $(DIRSRC)/tiplink.xml
396
397$(DIRWIKI)/InfoUpdateCm : \
398$(DIRSRC)/linkwiki.sed \
399$(DIRWWW)/infoupdatecm.html
400        @echo "{{{" > $@
401        @echo "#!html" >> $@
402        @xml sel -N x="http://www.w3.org/1999/xhtml" \
403        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/infoupdatecm.html | \
404        sed -f $(DIRSRC)/linkwiki.sed \
405        >> $@
406        @echo "}}}" >> $@
407
408$(DIRWWW)/infoupdatecm.html : \
409$(DIRTMP)/infoupdatecm_full.xml \
410$(DIRSRC)/saxo_html.xsl \
411$(DIRSRC)/style.css \
412$(DIRSRC)/$(PRODUCT).css
413        @xsltproc \
414        --param html.stylesheet "'style.css $(PRODUCT).css'" \
415        --param css.decoration 1 \
416        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
417        --param section.autolabel 1 \
418        --output $@ \
419        $(DIRSRC)/saxo_html.xsl \
420        $(DIRTMP)/infoupdatecm_full.xml
421
422$(DIRTMP)/infoupdatecm_full.xml : \
423$(DIRSRC)/infoupdatecm.xml \
424$(DIRTMP)/rowscm.xml
425        @xmllint \
426        --xinclude \
427        --encode utf-8 \
428        --noent \
429        --output $@ \
430        $(DIRSRC)/infoupdatecm.xml
431
432$(DIRWIKI)/InfoUpdateKwd : \
433$(DIRSRC)/linkwiki.sed \
434$(DIRWWW)/infoupdatekwd.html
435        @echo "{{{" > $@
436        @echo "#!html" >> $@
437        @xml sel -N x="http://www.w3.org/1999/xhtml" \
438        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/infoupdatekwd.html | \
439        sed -f $(DIRSRC)/linkwiki.sed \
440        >> $@
441        @echo "}}}" >> $@
442
443$(DIRWWW)/infoupdatekwd.html : \
444$(DIRTMP)/infoupdatekwd_full.xml \
445$(DIRSRC)/saxo_html.xsl \
446$(DIRSRC)/style.css \
447$(DIRSRC)/$(PRODUCT).css
448        @xsltproc \
449        --param html.stylesheet "'style.css $(PRODUCT).css'" \
450        --param css.decoration 1 \
451        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
452        --param section.autolabel 1 \
453        --output $@ \
454        $(DIRSRC)/saxo_html.xsl \
455        $(DIRTMP)/infoupdatekwd_full.xml
456
457$(DIRTMP)/infoupdatekwd_full.xml : \
458$(DIRTMP)/infoupdatekwd.xml \
459$(DIRTMP)/rowskwd.xml
460        @xmllint \
461        --xinclude \
462        --encode utf-8 \
463        --noent \
464        --output $@ \
465        $(DIRTMP)/infoupdatekwd.xml
466
467$(DIRTMP)/rowscm.xml : \
468../../ForOldVersion/updateold.pro
469        @echo "<tbody>" > $@
470        @grep "IF NOT key_forgetold AND n_elements(\(.* = .*\)" ../../ForOldVersion/updateold.pro | \
471        sort | \
472        sed -e "s/\(^.* THEN \)\(.*\)\( = \)\(.*\)/<row><entry colname='old'><varname>\2<\/varname><\/entry> <entry colname='new'><varname>\4<\/varname><\/entry><\/row>/" >> $@
473        @echo "</tbody>" >> $@
474
475$(DIRTMP)/rowskwd.xml : \
476../../ForOldVersion/updatekwd.pro
477        @echo "<tbody>" > $@
478        @grep "^  old = \[old, .* new = \[new" ../../ForOldVersion/updatekwd.pro | \
479        sort | \
480        sed -e "s/\( old = \[old, '\)\(.*\)\('\] *& new = \[new, '\)\(.*\)\('\]\)/<row><entry colname='old'><varname>\2<\/varname><\/entry> <entry colname='new'><varname>\4<\/varname><\/entry><\/row>/" >> $@
481
482        @echo "</tbody>" >> $@
483
484$(DIRWIKI)/WhatisSaxo : \
485$(DIRSRC)/linkwiki.sed \
486$(DIRWWW)/whatissaxo.html
487        @echo "{{{" > $@
488        @echo "#!html" >> $@
489        @xml sel -N x="http://www.w3.org/1999/xhtml" \
490        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/whatissaxo.html | \
491        sed -f $(DIRSRC)/linkwiki.sed \
492        >> $@
493        @echo "}}}" >> $@
494
495$(DIRWWW)/whatissaxo.html : \
496$(DIRTMP)/whatissaxo_full.xml \
497$(DIRSRC)/saxo_html.xsl \
498$(DIRSRC)/style.css \
499$(DIRSRC)/$(PRODUCT).css
500        @xsltproc \
501        --param html.stylesheet "'style.css $(PRODUCT).css'" \
502        --param css.decoration 1 \
503        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
504        --param section.autolabel 1 \
505        --output $@ \
506        $(DIRSRC)/saxo_html.xsl \
507        $(DIRTMP)/whatissaxo_full.xml
508
509$(DIRTMP)/whatissaxo_full.xml : \
510$(DIRSRC)/whatissaxo.xml
511        @xmllint \
512        --xinclude \
513        --encode utf-8 \
514        --noent \
515        --output $@ \
516        $(DIRSRC)/whatissaxo.xml
517
518$(DIRWIKI)/WhatsNew : \
519$(DIRSRC)/linkwiki.sed \
520$(DIRWWW)/whatsnew.html
521        @echo "{{{" > $@
522        @echo "#!html" >> $@
523        @xml sel -N x="http://www.w3.org/1999/xhtml" \
524        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/whatsnew.html | \
525        sed -f $(DIRSRC)/linkwiki.sed \
526        >> $@
527        @echo "}}}" >> $@
528
529$(DIRWWW)/whatsnew.html : \
530$(DIRTMP)/whatsnew_full.xml \
531$(DIRSRC)/saxo_html.xsl \
532$(DIRSRC)/style.css \
533$(DIRSRC)/$(PRODUCT).css
534        @xsltproc \
535        --param html.stylesheet "'style.css $(PRODUCT).css'" \
536        --param css.decoration 1 \
537        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
538        --param section.autolabel 1 \
539        --output $@ \
540        $(DIRSRC)/saxo_html.xsl \
541        $(DIRTMP)/whatsnew_full.xml
542       
543$(DIRTMP)/whatsnew_full.xml : \
544$(DIRSRC)/whatsnew.xml
545        @xmllint \
546        --xinclude \
547        --encode utf-8 \
548        --noent \
549        --output $@ \
550        $(DIRSRC)/whatsnew.xml
551
552$(DIRWIKI)/UpdateSaxo : \
553$(DIRSRC)/linkwiki.sed \
554$(DIRWWW)/updatesaxo.html
555        @echo "{{{" > $@
556        @echo "#!html" >> $@
557        @xml sel -N x="http://www.w3.org/1999/xhtml" \
558        -t -m "//x:div[@class='article']" -c . -n $(DIRWWW)/updatesaxo.html | \
559        sed -f $(DIRSRC)/linkwiki.sed \
560        >> $@
561        @echo "}}}" >> $@
562
563$(DIRWWW)/updatesaxo.html : \
564$(DIRTMP)/updatesaxo_full.xml \
565$(DIRSRC)/saxo_html.xsl \
566$(DIRSRC)/style.css \
567$(DIRSRC)/$(PRODUCT).css
568        @xsltproc \
569        --param html.stylesheet "'style.css $(PRODUCT).css'" \
570        --param css.decoration 1 \
571        --param link.mailto.url "'mailto:saxo-dev_at_forge.ipsl.jussieu.fr'" \
572        --param section.autolabel 1 \
573        --output $@ \
574        $(DIRSRC)/saxo_html.xsl \
575        $(DIRTMP)/updatesaxo_full.xml
576       
577$(DIRTMP)/updatesaxo_full.xml : \
578$(DIRSRC)/updatesaxo.xml
579        @xmllint \
580        --xinclude \
581        --encode utf-8 \
582        --noent \
583        --output $@ \
584        $(DIRSRC)/updatesaxo.xml
585
586$(DIRTMP)/titlepage.main.xsl : \
587$(DIRSRC)/titlepage.main.xml
588        @xsltproc \
589        --output $@ \
590        http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \
591        $(DIRSRC)/titlepage.main.xml
592        $(DIRSRC)/titlepage.main.xml
Note: See TracBrowser for help on using the repository browser.