/[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 39 - (show annotations)
Mon Jan 14 21:28:16 2008 UTC (13 years ago) by norman.x.gray
File size: 2644 byte(s)
Adjust ivoa.net URL in document (to match where the reference actually
  ended up.
Adjust Makefile.in to remove dollars from SVN keywords (it turns out
  that stupid twiki substitutes these itself!)

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 echo '\bibstyle{plainhtml}' >> $@
31
32 # Following relies on BIBINPUTS and BSTINPUTS being set OK.
33 %.bbl: %.aux
34 $(BIBTEX) $*
35 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)
36 mv $(@:=.tmp) $@
37
38 ########################################
39 #
40 # Default target
41
42 vocabularies.xhtml: vocabularies.xml vocabularies.bbl structure.xslt
43 rm -f $@ tmp
44 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id vocabularies.xml \
45 @USE_XSLTPROC@ structure.xslt vocabularies.xml | $(edit) >tmp && mv tmp $@
46 @USE_SAXON@ java -jar $(SAXONJAR) vocabularies.xml structure.xslt document-id=vocabularies.xml | $(edit) >tmp && mv tmp $@
47
48
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 # Maintenance
73
74 clean:
75 rm -f vocabularies.xhtml vocabularies.aux vocabularies.bbl \
76 vocabularies.blg vocabularies.rdf vocabularies.ttl tmp
77
78 realclean: clean
79 rm -f Makefile

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