# The master in this directory is AAkeys2AVM.ttl.in, which is a # mapping file from A&A keywords vocabulary to the AVM taxonomy # in Turtle syntax # # The products from this directory (see the target 'all') are # AAkeys2AVM.tar and Notes # For cwm and rapper, see notes in configure.ac CWM=@CWM@ RAPPER=@RAPPER@ TAR=@TAR@ # 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 %.ttl: %.ttl.in rm -f $@ tmp $(edit) $< >tmp && mv tmp $@ # Translate RDF/XML to Turtle using rapper %.ttl: %.rdf rm -f $@ tmp $(RAPPER) -o turtle -O $(BASEURI)/AAkeys2AVM $< >tmp && mv tmp $@ ######################################## # # Targets all: AAkeys2AVM.tar AAkeys2AVM.tar: AAkeys2AVM.ttl AAkeys2AVM.rdf AAkeys2AVM.html rm -f $@ $(TAR) cf $@ AAkeys2AVM.ttl AAkeys2AVM.rdf AAkeys2AVM.html AAkeys2AVM.rdf: AAkeys2AVM.ttl $(RAPPER) -i turtle -o rdfxml -O $(BASEURI)/AAkeys2AVM $< >tmp && mv tmp $@ clean: rm -f AAkeys2AVM.ttl AAkeys2AVM.rdf AAkeys2AVM.tar tmp