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