# Makefile modified (more and more substantially) from an original # version by Frederic V Hessman. # # As described in ../../README, the default make target in this file # must produce ./.rdf, ./.ttl and ./Notes. RDFROOT=IAUT93 RDFPATH=@BASEURI@/ RAPPER=@RAPPER@ PYTHON=@PYTHON@ # TAR may be overridden on the command line TAR=@TAR@ LN_S=@LN_S@ all: $(RDFROOT).tar dist: $(RDFROOT).tar STUFF=Makefile # the RDFROOT.rdf file is the converted version of the source .txt file $(RDFROOT).rdf: $(RDFROOT).txt multiling.txt thesaurus.py test -d dict || mkdir dict $(PYTHON) thesaurus.py --root=$(RDFROOT) --path=$(RDFPATH) --output=$(RDFROOT) --multiling=multiling.txt --releasedate=@RELEASEDATEN@ --version=@PACKAGE_VERSION@ # making the .rdf file generates labels.html $(RDFROOT).html: $(RDFROOT).rdf cp labels.html $(RDFROOT).html # Convert the RDF/XML version of the vocabulary to Turtle. # This incidentally validates the generated RDF/XML. $(RDFROOT).ttl: $(RDFROOT).rdf $(RAPPER) -i rdfxml -o turtle -O $(RDFPATH)$(RDFROOT) $< >$@.tmp && mv $@.tmp $@ $(RDFROOT).tar: $(RDFROOT).rdf $(RDFROOT).ttl $(RDFROOT).html rm -f $@ $(TAR) cf $@ $(RDFROOT).rdf $(RDFROOT).ttl $(RDFROOT).html aliases.html tokens.html dict # tar -cf $(RDFROOT).tar *.txt *.rdf *.py $(STUFF) dict/* iterate: mv $(RDFROOT).txt $(RDFROOT)_old.txt mv newest.txt $(RDFROOT).txt clean: rm -f $(RDFROOT).rdf $(RDFROOT).ttl $(RDFROOT).html $(RDFROOT).tar rm -Rf dict