/[volute]/trunk/projects/vocabularies/doc/Makefile.in
ViewVC logotype

Contents of /trunk/projects/vocabularies/doc/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations)
Fri Dec 7 13:45:23 2007 UTC (12 years, 11 months ago) by norman.x.gray
File size: 3385 byte(s)
Added --with-xsltproc and --with-saxon switches to the configure.ac
  script, to make it possible to swap between the two (there appear to
  be some currently unresolved problems with doc/structure.xslt and xsltproc)

1 BASEURI=@BASEURI@
2
3 VERSION=@PACKAGE_VERSION@
4 RELEASEDATE=@RELEASEDATE@
5
6 # Following should be overridden by calling Makefile
7 DISTNAME=dist-XXX
8
9 # Use Saxon if necessary: some xsltproc versions seem to have trouble with
10 # the structure.xslt file. If this is indeed necessary, adjust the SAXONJAR
11 # line below.
12 SAXONJAR=@SAXONJAR@
13 XSLTPROC=@XSLTPROC@
14
15 edit=sed -e 's/@VERSION\@/$(VERSION)/g' \
16 -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \
17 -e 's,@BASEURI\@,$(BASEURI),g' \
18 -e 's,@DISTNAME\@,$(DISTNAME),g'
19
20 # Rules for creating note.xhtml from note.xml
21
22 %.aux: %.xml structure.xslt
23 rm -f $@
24 @USE_XSLTPROC@ xsltproc --stringparam document-id $< --stringparam target aux \
25 @USE_XSLTPROC@ structure.xslt $< >tmp && mv tmp $@
26 @USE_SAXON@ java -jar $(SAXONJAR) $< structure.xslt document-id=$< target=aux >tmp && mv tmp $@
27 echo '\bibstyle{plainhtml}' >> $@
28
29 # Following relies on BIBINPUTS and BSTINPUTS being set OK.
30 %.bbl: %.aux
31 bibtex $*
32 sed '1s+<dl>+<dl xmlns="http://www.w3.org/1999/xhtml">+; /% *$$/{N;s/% *\n//;}; s/[{}]//g; s,\([^/]\)~,\1 ,g; s+\\,c+ç+g; s,\\'"'"'e,é,g; s,\\'"'"'a,á,g; s,\\\^o,ô,g; s,&,&amp;,g' $@ >$(@:=.tmp)
33 mv $(@:=.tmp) $@
34
35 ########################################
36 #
37 # Default target
38
39 vocabularies.xhtml: vocabularies.xml vocabularies.bbl structure.xslt
40 rm -f $@ tmp
41 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id vocabularies.xml \
42 @USE_XSLTPROC@ structure.xslt vocabularies.xml | $(edit) >tmp && mv tmp $@
43 @USE_SAXON@ java -jar $(SAXONJAR) vocabularies.xml structure.xslt document-id=vocabularies.xml | $(edit) >tmp && mv tmp $@
44
45
46 # xsltproc --stringparam document-id vocabularies.xml \
47 # structure.xslt vocabularies.xml | $(edit) >tmp && mv tmp $@
48 ## java -jar $(SAXONJAR) vocabularies.xml structure.xslt document-id=vocabularies.xml | $(edit) >tmp && mv tmp $@
49
50 ########################################
51 #
52 # Extras
53
54 # Check the RDFa content of vocabularies.xhtml
55 vocabularies.rdf: vocabularies.xhtml RDFa2RDFXML.xsl
56 rm -f $@ tmp
57 @USE_XSLTPROC@ xsltproc RDFa2RDFXML.xsl vocabularies.xhtml >tmp && mv tmp $@
58 @USE_SAXON@ java -jar $(SAXONJAR) vocabularies.xhtml RDFa2RDFXML.xsl >tmp && mv tmp $@
59
60 # This refers to a local copy of the current version of the script
61 # RDFa2RDFXML.xsl available from <http://ns.inria.fr/grddl/rdfa/>
62 RDFa2RDFXML.xsl:
63 curl http://ns.inria.fr/grddl/rdfa/2007/09/19/RDFa2RDFXML.xsl >$@
64
65 # 'rapper' is part of librdf.org, the Redland RDF libraries
66 vocabularies.ttl: vocabularies.rdf
67 rm -f $@ tmp
68 rapper --output turtle vocabularies.rdf $(BASEURI) >tmp && mv tmp $@
69
70 ########################################
71 #
72 # Maintainance
73
74 # The following extracts from Norman's compsci.bib database those entries
75 # which are referred to in vocabularies.aux. To use this, change the
76 # <?bibliography?> line to refer to "compsci", then make vocabularies.xhtml,
77 # then make this target, then change <?bibliography?> to refer again
78 # to "rm-refs". It doesn't work completely, because bibtool for some
79 # reason fails to pick up a crossref, but it's a start.
80 #rm-refs.bib:
81 # echo "new.entry.type = {electronic}" >bibtool.rsc
82 # echo "new.entry.type = {webpage}" >>bibtool.rsc
83 # /Data/tools/BibTool-2.46/bin/bibtool -r bibtool.rsc -x vocabularies.aux -o rm-refs.bib
84
85 clean:
86 rm -f vocabularies.xhtml vocabularies.aux vocabularies.bbl \
87 vocabularies.blg vocabularies.rdf vocabularies.ttl tmp
88
89 realclean: clean
90 rm -f Makefile

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26