/[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 40 - (show annotations)
Thu Jan 24 13:23:49 2008 UTC (12 years, 10 months ago) by norman.x.gray
File size: 2809 byte(s)
Add an initial set of use cases
Adjust the Makefile.in (echo \b has problems on POSIX (which OS X 10.5
  is compatible with; switch to printf)

1 BASEURI=@BASEURI@
2
3 VERSION=@PACKAGE_VERSION@
4 RELEASEDATE=@RELEASEDATE@
5
6 # Following should/will be overridden by the Makefile which calls this one
7 DISTNAME=@DISTNAME@
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 BIBTEX=@BIBTEX@
15 RAPPER=@RAPPER@
16
17 edit=sed -e 's/@VERSION\@/$(VERSION)/g' \
18 -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \
19 -e 's,@BASEURI\@,$(BASEURI),g' \
20 -e 's,@DISTNAME\@,$(DISTNAME),g' \
21 -e 's,\$$\([A-Z][A-Za-z]*:[^$$]*\)\$$,\1,g'
22
23 # Rules for creating note.xhtml from note.xml
24
25 %.aux: %.xml structure.xslt
26 rm -f $@
27 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id $< --stringparam target aux \
28 @USE_XSLTPROC@ structure.xslt $< >tmp && mv tmp $@
29 @USE_SAXON@ java -jar $(SAXONJAR) $< structure.xslt document-id=$< target=aux >tmp && mv tmp $@
30 # Use printf rather than echo, since difference echo implementations treat
31 # \b in different ways (some as the pair of characters "\b", others as a backspace).
32 printf '\\bibstyle{plainhtml}\n' >> $@
33
34 # Following relies on BIBINPUTS and BSTINPUTS being set OK.
35 %.bbl: %.aux
36 $(BIBTEX) $*
37 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)
38 mv $(@:=.tmp) $@
39
40 ########################################
41 #
42 # Default target
43
44 vocabularies.xhtml: vocabularies.xml vocabularies.bbl structure.xslt
45 rm -f $@ tmp
46 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id vocabularies.xml \
47 @USE_XSLTPROC@ structure.xslt vocabularies.xml | $(edit) >tmp && mv tmp $@
48 @USE_SAXON@ java -jar $(SAXONJAR) vocabularies.xml structure.xslt document-id=vocabularies.xml | $(edit) >tmp && mv tmp $@
49
50
51
52 ########################################
53 #
54 # Extras
55
56 # Check the RDFa content of vocabularies.xhtml
57 vocabularies.rdf: vocabularies.xhtml RDFa2RDFXML.xsl
58 rm -f $@ tmp
59 @USE_XSLTPROC@ $(XSLTPROC) RDFa2RDFXML.xsl vocabularies.xhtml >tmp && mv tmp $@
60 @USE_SAXON@ java -jar $(SAXONJAR) vocabularies.xhtml RDFa2RDFXML.xsl >tmp && mv tmp $@
61
62 # This refers to a local copy of the current version of the script
63 # RDFa2RDFXML.xsl available from <http://ns.inria.fr/grddl/rdfa/>
64 RDFa2RDFXML.xsl:
65 curl http://ns.inria.fr/grddl/rdfa/2007/09/19/RDFa2RDFXML.xsl >$@
66
67 # 'rapper' is part of librdf.org, the Redland RDF libraries
68 vocabularies.ttl: vocabularies.rdf
69 rm -f $@ tmp
70 $(RAPPER) --output turtle vocabularies.rdf $(BASEURI) >tmp && mv tmp $@
71
72 ########################################
73 #
74 # Maintenance
75
76 clean:
77 rm -f vocabularies.xhtml vocabularies.aux vocabularies.bbl \
78 vocabularies.blg vocabularies.rdf vocabularies.ttl tmp
79
80 realclean: clean
81 rm -f Makefile

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