# The master in this directory is AAkeys-master.ttl.in, which is the # A&A keywords vocabulary in Turtle syntax # # The products from this directory (see the target 'all') are # AAkeys.ttl and AAkeys.rdf. # For cwm and rapper, see notes in configure.ac CWM=@CWM@ RAPPER=@RAPPER@ TAR=@TAR@ RDF2HTML=@PYTHON@ ../code/rdf2html.py # Version information RELEASE=@PACKAGE_VERSION@ RELEASEDATE=@RELEASEDATEN@ # Base URI for the vocabularies -- no trailing slash BASEURI=@BASEURI@ edit=sed -e 's,@RELEASE\@,$(RELEASE),' \ -e 's,@RELEASEDATE\@,$(RELEASEDATE),' \ -e 's,@BASEURI\@,$(BASEURI),' ######################################## # # Rules # Translate RDF/XML to Turtle using rapper %.ttl: %.rdf rm -f $@ tmp $(RAPPER) -o turtle -O $(BASEURI)/AAkeys $< >tmp && mv tmp $@ %.html: %.rdf rm -f $@ $(RDF2HTML) $< >tmp && mv tmp $@ ######################################## # # Targets all: AAkeys.tar AAkeys-master.ttl: AAkeys-master.ttl.in rm -f $@ tmp $(edit) $< >tmp && mv tmp $@ AAkeys.tar: AAkeys.ttl AAkeys.rdf AAkeys.html rm -f $@ $(TAR) cf $@ AAkeys.ttl AAkeys.rdf AAkeys.html AAkeys.rdf: AAkeys-master.ttl $(CWM) $< --think=../code/checkHierarchy.n3 --rdf | $(RAPPER) -i rdfxml -o rdfxml-abbrev -O $(BASEURI)/AAkeys - $(BASEURI)/AAkeys >tmp && mv tmp $@ clean: rm -f AAkeys-master.ttl AAkeys.ttl AAkeys.rdf AAkeys.tar tmp