# 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=@DISTNAME@ 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 doc/vocabularies.xhtml: Makefile cd doc; make # Maintenance targets # Note that 'configure' is checked in (to make it possible to configure and # build the project from a checkout, with the minimum amount of fuss). # However we don't here include a dependency of configure on configure.ac: # because Subversion doesn't preserve timestamps, we couldn't guarantee that # this rule wouldn't fire inappropriately, and a stray firing of this # rule vitiates the point of including ./configure in the repository. # Similarly for the Makefile:Makefile.in rule. 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