/[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 9 - (show annotations)
Thu Dec 6 10:41:49 2007 UTC (13 years, 10 months ago) by alasdair.gray
File size: 2870 byte(s)
Bibtex does not take a file extension. Corrected build file so that no user input is required.
1 BASEURI=@BASEURI@
2
3 VERSION=@PACKAGE_VERSION@
4 RELEASEDATE=@RELEASEDATE@
5
6 # Following should be overridden by calling Makefile
7 DISTNAME=dist-$(BASEURI)
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=saxon8.jar
13
14 edit=sed -e 's/@VERSION\@/$(VERSION)/g' \
15 -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \
16 -e 's,@BASEURI\@,$(BASEURI),g' \
17 -e 's,@DISTNAME\@,$(DISTNAME),g'
18
19 # Rules for creating note.xhtml from note.xml
20
21 %.aux: %.xml structure.xslt
22 rm -f $@
23 xsltproc --stringparam document-id $< --stringparam target aux \
24 structure.xslt $< >tmp && mv tmp $@
25 echo '\bibstyle{plainhtml}' >> $@
26
27 # Following relies on BIBINPUTS and BSTINPUTS being set OK.
28 %.bbl: %.aux
29 bibtex $*
30 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)
31 mv $(@:=.tmp) $@
32
33 ########################################
34 #
35 # Default target
36
37 vocabularies.xhtml: vocabularies.xml vocabularies.bbl structure.xslt
38 rm -f $@ tmp
39 xsltproc --stringparam document-id vocabularies.xml \
40 structure.xslt vocabularies.xml | $(edit) >tmp && mv tmp $@
41 # java -jar $(SAXONJAR) vocabularies.xml structure.xslt document-id=vocabularies.xml | $(edit) >tmp && mv tmp $@
42
43 ########################################
44 #
45 # Extras
46
47 # Check the RDFa content of vocabularies.xhtml
48 vocabularies.rdf: vocabularies.xhtml RDFa2RDFXML.xsl
49 rm -f $@ tmp
50 xsltproc RDFa2RDFXML.xsl vocabularies.xhtml >tmp && mv tmp $@
51
52 # This refers to a local copy of the current version of the script
53 # RDFa2RDFXML.xsl available from <http://ns.inria.fr/grddl/rdfa/>
54 RDFa2RDFXML.xsl:
55 curl http://ns.inria.fr/grddl/rdfa/2007/09/19/RDFa2RDFXML.xsl >$@
56
57 # 'rapper' is part of librdf.org, the Redland RDF libraries
58 vocabularies.ttl: vocabularies.rdf
59 rm -f $@ tmp
60 rapper --output turtle vocabularies.rdf $(BASEURI) >tmp && mv tmp $@
61
62 ########################################
63 #
64 # Maintainance
65
66 # The following extracts from Norman's compsci.bib database those entries
67 # which are referred to in vocabularies.aux. To use this, change the
68 # <?bibliography?> line to refer to "compsci", then make vocabularies.xhtml,
69 # then make this target, then change <?bibliography?> to refer again
70 # to "rm-refs". It doesn't work completely, because bibtool for some
71 # reason fails to pick up a crossref, but it's a start.
72 #rm-refs.bib:
73 # echo "new.entry.type = {electronic}" >bibtool.rsc
74 # echo "new.entry.type = {webpage}" >>bibtool.rsc
75 # /Data/tools/BibTool-2.46/bin/bibtool -r bibtool.rsc -x vocabularies.aux -o rm-refs.bib
76
77 clean:
78 rm -f vocabularies.xhtml vocabularies.aux vocabularies.bbl \
79 vocabularies.blg vocabularies.rdf vocabularies.ttl tmp
80
81 realclean: clean
82 rm -f Makefile

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