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