=================================================================== RCS file: /home/cvs/OpenXM/src/asir2000/Makefile,v retrieving revision 1.22 retrieving revision 1.25 diff -u -p -r1.22 -r1.25 --- OpenXM/src/asir2000/Makefile 2003/03/25 06:25:58 1.22 +++ OpenXM/src/asir2000/Makefile 2007/08/20 05:47:34 1.25 @@ -1,11 +1,19 @@ -# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.21 2003/03/08 10:19:33 ohara Exp $ +# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.24 2005/07/14 02:56:52 takayama Exp $ +OpenXM_HOME=../.. +PREFIX=${OpenXM_HOME} +DISTDIR=${OpenXM_HOME}/../OpenXM_dist +MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/ +# Original. http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ +DISTNAME=gc6.8 +DISTFILES=${DISTNAME}.tar.gz + ASIR = ../../../OpenXM_contrib2/asir2000 ASIR_PARI = ../../../OpenXM_contrib2/asir2000-pari ASIR_SMALL = ../../../OpenXM_contrib2/asir2000-small PARI = ../pari -all: configure +all: configure install-pari @if [ ! -f ./.make_done ]; then \ (cd $(ASIR) ; make all) \ fi @@ -42,14 +50,20 @@ clean: (cd $(ASIR) ; make clean) -@if [ -d $(ASIR_PARI) ]; then (cd $(ASIR_PARI) ; make clean) fi -@if [ -d $(ASIR_SMALL) ]; then (cd $(ASIR_SMALL) ; make clean) fi - @rm -f ./.make_* ./.configure_* ./.install-* + @rm -f ./.make_* ./.configure_* ./.install-* ./.fetch* distclean: clean @rm -rf $(ASIR_PARI) @rm -rf $(ASIR_SMALL) @cat BINARIES | xargs -t rm -rf -configure: install-pari +fetch: + @if [ ! -f .fetch_done ]; then \ + ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \ + fi + @touch .fetch_done + +configure: fetch @if [ ! -f ./.configure_done ]; then \ (cd $(ASIR) ; \ ./configure --enable-plot --with-pari --prefix="`cd ../../OpenXM; pwd`") \ @@ -74,7 +88,7 @@ configure-small: configure fi @touch ./.configure_small_done -configure-xmkmf: install-pari +configure-xmkmf: @if [ ! -f ./.configure_done ]; then \ (cd $(ASIR) ; ./configure-xmkmf -plot -pari ) \ fi