/[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 70 - (show annotations)
Fri Feb 22 05:00:49 2008 UTC (12 years, 9 months ago) by norman.x.gray
File size: 3355 byte(s)
Final preening before WD release 1.0

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

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