/[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 733 - (show annotations)
Tue Aug 19 10:06:54 2008 UTC (12 years, 5 months ago) by norman.x.gray
File size: 4083 byte(s)
Move the position of the entities.sed transformation -- the
  entities were being removed from the .xhtml file as originally
  planned, and then promptly put back in by the identity
  transformation.  The entities.sed fix is now in the .xhtml -> .html step.

1 # DOCURI is the location of the document...
2 DOCURI=@DOCURI@
3 # ...and BASEURI is the base URI of the vocabularies, and thus the
4 # distribution location of the vocabulary files
5 BASEURI=@BASEURI@
6
7 #ERSION=@PACKAGE_VERSION@
8 #RELEASEDATE=@RELEASEDATE@
9
10 # Following should/will be overridden by the Makefile which calls this one
11 #DISTNAME=@DISTNAME@
12
13 # Use Saxon if necessary: some xsltproc versions seem to have trouble with
14 # the structure.xslt file. If this is indeed necessary, adjust the SAXONJAR
15 # line below.
16 SAXONJAR="@SAXONJAR@"
17 XSLTPROC="@XSLTPROC@"
18 BIBTEX="@BIBTEX@"
19 RAPPER="@RAPPER@"
20
21 # The following is becoming unwieldy: it would seem better if the vocabularies.xml
22 # and vocabularies-issues.xml files were replaced by foo.xml.in, and substituted
23 # by configure. However that makes the build process that little bit more
24 # opaque, so it's probably best overall to this as it is.
25 edit=sed -e 's/@VERSION\@/@PACKAGE_VERSION@/g' \
26 -e 's/@RELEASEDATE\@/@RELEASEDATE@/g' \
27 -e 's,@DOCURI\@,@DOCURI@,g' \
28 -e 's,@BASEURI\@,@BASEURI@,g' \
29 -e 's,@DISTNAME\@,@DISTNAME@,g' \
30 -e 's,@ISSUESLIST\@,@ISSUESLIST@,g' \
31 -e 's,\$$\([A-Z][A-Za-z]*:[^$$]*\)\$$,\1,g' \
32 -e 's/@DRAFTVERSION\@{\([^}]*\)}/@DRAFTVERSION@/'
33 #edit=sed -e 's/@VERSION\@/$(VERSION)/g' \
34 # -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \
35 # -e 's,@DISTURI\@,$(DISTURI),g' \
36 # -e 's,@BASEURI\@,$(BASEURI),g' \
37 # -e 's,@DISTNAME\@,$(DISTNAME),g' \
38 # -e 's,@ISSUESLIST\@,$(ISSUESLIST),g' \
39 # -e 's,\$$\([A-Z][A-Za-z]*:[^$$]*\)\$$,\1,g'
40
41 # Rules for creating note.xhtml from note.xml
42
43 %.aux: %.xml structure.xslt
44 rm -f $@ $@.tmp
45 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id $< --stringparam target aux \
46 @USE_XSLTPROC@ structure.xslt $< >$@.tmp && mv $@.tmp $@
47 @USE_SAXON@ java -jar $(SAXONJAR) $< structure.xslt document-id=$< target=aux >$@.tmp && mv $@.tmp $@
48 # Use printf rather than echo, since difference echo implementations treat
49 # \b in different ways (some as the pair of characters "\b", others as a backspace).
50 printf '\\bibstyle{plainhtml}\n' >> $@
51
52 # Following relies on BIBINPUTS and BSTINPUTS being set OK.
53 %.bbl: %.aux rm-refs.bib
54 rm -f $@ $@.tmp
55 $(BIBTEX) $*
56 sed -e '1s+<dl>+<dl xmlns="http://www.w3.org/1999/xhtml">+' -f detex.sed $@ >$@.tmp && mv $@.tmp $@
57
58 # Convert .xml source to .xhtml output (which includes UTF-8 characters)
59 %.xhtml: %.xml
60 rm -f $@ $@.tmp
61 @USE_XSLTPROC@ $(XSLTPROC) --stringparam document-id $< structure.xslt $< | $(edit) >$@.tmp && mv $@.tmp $@
62 @USE_SAXON@ java -jar $(SAXONJAR) $< structure.xslt document-id=$< | $(edit) >$@.tmp && mv $@.tmp $@
63
64 # Check the RDFa content of vocabularies.xhtml
65 %.rdf: %.xhtml RDFa2RDFXML.xsl
66 rm -f $@ $@.tmp
67 @USE_XSLTPROC@ $(XSLTPROC) RDFa2RDFXML.xsl $< >$@.tmp && mv $@.tmp $@
68 @USE_SAXON@ java -jar $(SAXONJAR) $< RDFa2RDFXML.xsl >$@.tmp && mv $@.tmp $@
69
70 # Reformat to Turtle
71 %.ttl: %.rdf
72 rm -f $@ $@.tmp
73 $(RAPPER) --output turtle $< $(BASEURI) >$@.tmp && mv $@.tmp $@
74
75
76 ########################################
77 #
78 # Default target
79
80 all: vocabularies.html vocabularies-issues.xhtml
81
82 # Add extra dependency
83 vocabularies.xhtml: vocabularies.bbl
84 vocabularies-issues.xhtml: vocabularies-issues.bbl
85
86 # Convert .xhtml to .html by doing an identity transformation using a
87 # stylesheet which uses the "html" output method.
88 vocabularies.html: vocabularies.xhtml
89 rm -f $@ $@.tmp
90 @USE_XSLTPROC@ $(XSLTPROC) identity-html.xslt $< | sed -f to-entities.sed >$@.tmp && mv $@.tmp $@
91 @USE_SAXON@ java -jar $(SAXONJAR) $< identity-html.xslt | sed -f to-entities.sed >$@.tmp && mv $@.tmp $@
92
93 ########################################
94 #
95 # Extras
96
97 # This refers to a local copy of the current version of the script
98 # RDFa2RDFXML.xsl available from <http://ns.inria.fr/grddl/rdfa/>
99 RDFa2RDFXML.xsl:
100 curl http://ns.inria.fr/grddl/rdfa/2007/09/19/RDFa2RDFXML.xsl >$@
101
102 ########################################
103 #
104 # Maintenance
105
106 clean:
107 rm -f *~ vocabularies.xhtml vocabularies.html vocabularies.aux vocabularies.bbl \
108 vocabularies.blg vocabularies.rdf vocabularies.ttl tmp \
109 vocabularies-issues.xhtml
110
111 realclean: clean
112 rm -f Makefile

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