cgal/Packages/Interval_arithmetic/Makefile

70 lines
2.2 KiB
Makefile

# Makefile for a CGAL package.
.PHONY: doc package filters test 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 clean $(Package).tar.gz
@echo "-----------------------------------"
@echo "------------ Penser à: ------------"
@echo "-----------------------------------"
@echo "---- changes.txt ----"
@echo "---- make test ----"
@echo "---- make VERSION=X.XX version ----"
@echo "---- cvs commit ----"
@echo "---- make VERSION=X.XX tag ----"
@echo "---- make package ----"
@echo "---- make submit ----"
@echo "-----------------------------------"
version:
echo $(CGAL_VERSION) > version
echo "Maintainer : Sylvain.Pion@sophia.inria.fr" >> version
tag:
cvs tag -c $(TAG_VERSION)
submit: package
cp $(Package).tar.gz doc_ps/$(Package).ps version description.txt \
changes.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 src/.pure src/*.o
$(Package).tar.gz:
tar -zcvf $(Package).tar.gz \
--exclude=CVS --exclude=wrapper.tex --exclude=Makefile --exclude=TODO \
--exclude="*".swp --exclude=tst_Static_filter_error.C \
--exclude=tst_static_adaptatif.C --exclude=Lazy_exact_nt.C \
version description.txt changes.txt \
src include doc_tex doc_ps test scripts
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.
filters:
$(MAKE) -C include/CGAL/Arithmetic_filter