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

Contents of /trunk/projects/vocabularies/src/AAkeys/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (show annotations)
Tue Dec 4 21:09:34 2007 UTC (13 years, 5 months ago) by norman.x.gray
File size: 1230 byte(s)
Import vocabularies from Explicator repository, breaking them into 
  separate subdirectories of src/.  There's a certain amount of
  duplication of stuff in the respective src/*/Makefile.in, but this
  is (only?) because these have all come from the same place, so start
  more-or-less identical, and they'll likely diverge at least a little
  in future.
Rework build system, so that all configuration (version number,
  release date, etc) now happens within configure.ac.

1 # The master in this directory is AAkeys-master.ttl.in, which is the
2 # A&A keywords vocabulary in Turtle syntax
3 #
4 # The products from this directory (see the target 'all') are
5 # AAkeys.ttl and AAkeys.rdf.
6
7 # For cwm and rapper, see notes in configure.ac
8 CWM=@CWM@
9 RAPPER=@RAPPER@
10
11 # Version information
12 RELEASE=@PACKAGE_VERSION@
13 RELEASEDATE=@RELEASEDATEN@
14 # Base URI for the vocabularies -- no trailing slash
15 BASEURI=@BASEURI@
16
17 edit=sed -e 's,@RELEASE\@,$(RELEASE),' \
18 -e 's,@RELEASEDATE\@,$(RELEASEDATE),' \
19 -e 's,@BASEURI\@,$(BASEURI),'
20
21 ########################################
22 #
23 # Rules
24
25 %.ttl: %.ttl.in
26 rm -f $@ tmp
27 $(edit) $< >tmp && mv tmp $@
28
29 # Translate Turtle to RDF/XML using rapper. It looks like we could use
30 # $(CWM) --n3 $< --rdf --pipe
31 # but cwm 1.0.0 objects with "This sink cannot accept values with languages",
32 # apparently objecting to the xml:lang attributes in the RDF.
33 %.ttl: %.rdf
34 rm -f $@ tmp
35 $(RAPPER) -o turtle -O $(BASEURI)/AAkeys $< >tmp && mv tmp $@
36
37 ########################################
38 #
39 # Targets
40
41 all: AAkeys.ttl AAkeys.rdf
42
43 AAkeys.rdf: AAkeys-master.ttl
44 $(CWM) $< --think=../code/checkHierarchy.n3 --rdf >tmp && mv tmp $@
45
46 clean:
47 rm -f AAkeys-master.ttl AAkeys.ttl AAkeys.rdf tmp

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