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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 40 - (hide annotations)
Thu Jan 24 13:23:49 2008 UTC (13 years 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 norman.x.gray 5 BASEURI=@BASEURI@
2    
3     VERSION=@PACKAGE_VERSION@
4     RELEASEDATE=@RELEASEDATE@
5    
6 norman.x.gray 30 # Following should/will be overridden by the Makefile which calls this one
7 norman.x.gray 37 DISTNAME=@DISTNAME@
8 norman.x.gray 5
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 norman.x.gray 16 SAXONJAR=@SAXONJAR@
13     XSLTPROC=@XSLTPROC@
14 norman.x.gray 28 BIBTEX=@BIBTEX@
15 norman.x.gray 30 RAPPER=@RAPPER@
16 norman.x.gray 5
17     edit=sed -e 's/@VERSION\@/$(VERSION)/g' \
18     -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \
19     -e 's,@BASEURI\@,$(BASEURI),g' \
20 norman.x.gray 39 -e 's,@DISTNAME\@,$(DISTNAME),g' \
21     -e 's,\$$\([A-Z][A-Za-z]*:[^$$]*\)\$$,\1,g'
22 norman.x.gray 5
23     # Rules for creating note.xhtml from note.xml
24    
25     %.aux: %.xml structure.xslt
26     rm -f $@
27 norman.x.gray 30 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id $< --stringparam target aux \
28 norman.x.gray 16 @USE_XSLTPROC@ structure.xslt $< >tmp && mv tmp $@
29     @USE_SAXON@ java -jar $(SAXONJAR) $< structure.xslt document-id=$< target=aux >tmp && mv tmp $@
30 norman.x.gray 40 # 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 norman.x.gray 5
34     # Following relies on BIBINPUTS and BSTINPUTS being set OK.
35     %.bbl: %.aux
36 norman.x.gray 28 $(BIBTEX) $*
37 norman.x.gray 5 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 norman.x.gray 16 @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 norman.x.gray 5
50 norman.x.gray 16
51    
52 norman.x.gray 5 ########################################
53     #
54     # Extras
55    
56     # Check the RDFa content of vocabularies.xhtml
57     vocabularies.rdf: vocabularies.xhtml RDFa2RDFXML.xsl
58     rm -f $@ tmp
59 norman.x.gray 30 @USE_XSLTPROC@ $(XSLTPROC) RDFa2RDFXML.xsl vocabularies.xhtml >tmp && mv tmp $@
60 norman.x.gray 16 @USE_SAXON@ java -jar $(SAXONJAR) vocabularies.xhtml RDFa2RDFXML.xsl >tmp && mv tmp $@
61 norman.x.gray 5
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 norman.x.gray 30 $(RAPPER) --output turtle vocabularies.rdf $(BASEURI) >tmp && mv tmp $@
71 norman.x.gray 5
72     ########################################
73     #
74 norman.x.gray 30 # Maintenance
75 norman.x.gray 5
76     clean:
77     rm -f vocabularies.xhtml vocabularies.aux vocabularies.bbl \
78     vocabularies.blg vocabularies.rdf vocabularies.ttl tmp
79 norman.x.gray 7
80     realclean: clean
81 norman.x.gray 5 rm -f Makefile

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