# makefle RDFROOT=IVOAT RDFPATH=@BASEURI@/ #RDFPATH="http://www.astro.physik.uni-goettingen.de/~hessman/rdf/" RAPPER=@RAPPER@ PYTHON=@PYTHON@ RELEASEDATE=@RELEASEDATEN@ PACKAGE_VERSION=@PACKAGE_VERSION@ # TAR may be overridden on the command line TAR=@TAR@ LN_S=@LN_S@ DIST=$(RDFROOT).rdf $(RDFROOT).ttl $(RDFROOT).html $(RDFROOT).txt index.html doc.css icon.png aliases.html tokens.html labels.html # ----- DON'T NEED TO MODIFY STUFF BELOW ----- NUM=$(shell cat ./NUMBER_OF_ENTRIES) TOP=$(shell cat ./NUMBER_OF_TOP_ENTRIES) edit=sed -e 's/@DATE\@/$(PACKAGE_VERSION), $(RELEASEDATE)/' \ -e 's/@ROOT\@/$(RDFROOT)/g' \ -e 's/@TOTAL\@/$(NUM)/' \ -e 's/@TOP\@/$(TOP)/' all: $(RDFROOT).tar dist: $(RDFROOT).tar STUFF=Makefile doc.css aliases.html labels.html tokens.html $(RDFROOT).rdf: $(RDFROOT).txt test -d dict || mkdir dict $(PYTHON) thesaurus.py --root=$(RDFROOT) --path=$(RDFPATH) \ --releasedate=$(RELEASEDATE) --version=$(PACKAGE_VERSION) $(RDFROOT).html: IVOAT.html.in rm -f $@ $(edit) IVOAT.html.in > $@.tmp && mv $@.tmp $@ # Make an index.html, on a princple of least surprise index.html: $(RDFROOT).html cp $(RDFROOT).html index.html $(RDFROOT).tar: $(DIST) rm -f $@ $(TAR) cf $@ $(DIST) dict iterate: mv $(RDFROOT).txt $(RDFROOT)_old.txt mv newest.txt $(RDFROOT).txt $(RDFROOT).ttl: $(RDFROOT).rdf rm -f $@ tmp $(RAPPER) -i rdfxml -o turtle -O $(RDFPATH)$(RDFROOT) $< >$@.tmp && mv $@.tmp $@ clean: rm -f $(RDFROOT).rdf $(RDFROOT).ttl $(RDFROOT).html index.html $(RDFROOT).tar rm -Rf aliases.html labels.html tokens.html dict