# Makefile for a CGAL package. .PHONY: doc package filters test example submit version tag Package:=$(shell basename `cat CVS/Repository`) TAG_VERSION:=v$(shell echo $(VERSION) | sed -e "s/\./_/g") CGAL_VERSION:="$(VERSION) ($(shell date '+%e %b %Y'))" WWW_base=/u/www/0/www/htdocs/files/equipes/prisme/CGAL/DR:/Members WWW_dir=$(WWW_base)/$(Package) TMP_file=/tmp/submit-mail package: doc filters example clean $(Package).tar.gz @echo "-----------------------------------" @echo "------------ Penser à: ------------" @echo "-----------------------------------" @echo "---- changes.txt ----" @echo "---- make test ----" @echo "---- make VERSION=4.11 version ----" @echo "---- cvs commit ----" @echo "---- make VERSION=4.11 tag ----" @echo "---- make package ----" @echo "---- make submit ----" @echo "-----------------------------------" version: echo $(CGAL_VERSION) > version tag: cvs tag -c $(TAG_VERSION) submit: package cp $(Package).tar.gz doc_ps/$(Package).ps version description.txt \ $(WWW_dir) rm -f $(WWW_dir)/$(Package).ps.gz gzip -9 $(WWW_dir)/$(Package).ps echo > $(TMP_file) echo "submission::" >> $(TMP_file) echo "http://www-sop.inria.fr/prisme/CGAL/DR:/Members" >> $(TMP_file) echo "/$(Package)/$(Package).tar.gz" >> $(TMP_file) mail -s autohandle cgal-submit@cs.uu.nl $(USER) < $(TMP_file) rm -f $(TMP_file) test: $(MAKE) -C test/$(Package) clean: $(MAKE) -C doc_tex/support/NumberTypeSupport clean $(MAKE) -C test/$(Package) clean rm -f $(Package).tar.gz rm -f src/.pure src/*.o # --exclude=tstlink is here because I don't want to provide a makefile for # the test-suite. # --exclude=tst6.C because it's supposed to warn at compile time, but it # actually breaks at run time. $(Package).tar.gz: tar -zcvf $(Package).tar.gz \ --exclude=CVS --exclude=wrapper.tex --exclude=Makefile \ --exclude=TODO --exclude=tstlink1.C --exclude=tstlink2.C \ --exclude=tst6.C \ version description.txt changes.txt \ src include doc_tex doc_ps test examples doc: doc_ps/$(Package).ps doc_ps/$(Package).ps: doc_tex/support/NumberTypeSupport/Interval.tex $(MAKE) -C doc_tex/support/NumberTypeSupport cp doc_tex/support/NumberTypeSupport/$(Package).ps doc_ps/ # The following is specific to the IA package. example: $(MAKE) -C examples/$(Package)/include/CGAL/Arithmetic_filter filters: $(MAKE) -C include/CGAL/Arithmetic_filter