# Base URI of ontology # Do not change this -- it's expected to be stable long-term BASEURI=http://purl.org/astronomy/ont/object-types # URI for hosting directory is http://$(HOSTHOST)$(HOSTBASEDIR) HOSTHOST=www.astro.gla.ac.uk HOSTBASEDIR=/users/norman/ivoa/object-types # Release version VERSION=1.501 # rapper tool, from librdf.org RAPPER=rapper %.gz: % rm -f $@ gzip --best $< %.tar: % rm -f $@ tar cf $@ $< dist: object-types-$(VERSION).tar.gz object-types-$(VERSION): object-types.rdf object-types.ttl object-types.html if test -d $@; then rm -Rf $@; else :; fi mkdir $@ cp object-types.rdf object-types.ttl object-types.html $@ object-types.ttl: object-types.ttl.in Makefile rm -f $@ sed -e 's,@BASEURI@,$(BASEURI),g' -e 's/@VERSION@/$(VERSION)/' $< >$@.tmp && mv $@.tmp $@ object-types.rdf: object-types.ttl rm -f object-types.rdf # sed '/^#TESTEND/q' object-types.ttl | $(RAPPER) -iturtle -ordfxml-abbrev - $(BASEURI) >$@ $(RAPPER) -iturtle -ordfxml-abbrev object-types.ttl $(BASEURI) >$@.tmp && mv $@.tmp $@ object-types.html: object-types.rdf vocab-html-docs.xsl rm -f $@ xsltproc vocab-html-docs.xsl object-types.rdf >$@.tmp && mv $@.tmp $@ # webpage-tarball.tar is a set of files for distribution. # This should be installed so that the URL http://$(HOSTHOST)$(HOSTBASEDIR) is the directory # object-types contained in this tarball. webpage-tarball.tar: object-types tar cf $@ object-types object-types: object-types-$(VERSION) apache-htaccess Makefile if test -d $@; then rm -Rf $@; else :; fi mkdir $@ cp -R object-types-$(VERSION) $@ sed -e 's,@BASE@,$(HOSTBASEDIR),' -e 's/@VERSION@/$(VERSION)/' apache-htaccess >$@/.htaccess check-uris.sh: check-uris.sh.in Makefile rm -f $@ sed -e 's,@BASEURI@,$(BASEURI),' -e 's,@HOSTBASEURI@,http://$(HOSTHOST)$(HOSTBASEDIR),' -e 's,@VERSION@,$(VERSION),' check-uris.sh.in >$@ chmod +x $@ check: check-uris.sh ./check-uris.sh clean: rm -f object-types.rdf object-types.ttl object-types.html check-uris.sh rm -Rf object-types object-types-$(VERSION).tar.gz