# Makefile for the IVOA vocabularies SKOS distribution # @configure_input@ RELEASE=@PACKAGE_VERSION@ RELEASEDATE=@RELEASEDATEN@ # Base URI for the vocabularies -- no trailing slash BASEURI=@BASEURI@ # Distribution name -- can be overridden DISTNAME=vocab-$(RELEASE) TAR=@TAR@ ######################################## # # Rules %.gz: % rm -f $@ gzip --best $< ######################################## # # Targets all: ivoa-vocab-$(RELEASE).tar.gz ivoa-vocab-$(RELEASE).tar: src/$(DISTNAME).tar.gz doc/vocabularies.xhtml rm -Rf ${@:.tar=} mkdir ${@:.tar=} cp src/$(DISTNAME).tar.gz doc/vocabularies.xhtml ${@:.tar=} $(TAR) cf $@ ${@:.tar=} rm -Rf ${@:.tar=} src/$(DISTNAME).tar.gz: Makefile cd src; make DISTNAME=$(DISTNAME) doc/vocabularies.xhtml: Makefile cd doc; make DISTNAME=$(DISTNAME) clean: for d in src doc; do (cd $$d; make clean); done realclean: clean rm -f Makefile config.log config.status for d in src doc; do (cd $$d; make realclean); done