=================================================================== RCS file: /home/cvs/OpenXM/src/asir2000/Makefile,v retrieving revision 1.11 retrieving revision 1.32 diff -u -p -r1.11 -r1.32 --- OpenXM/src/asir2000/Makefile 2000/01/20 02:33:46 1.11 +++ OpenXM/src/asir2000/Makefile 2015/08/04 05:24:44 1.32 @@ -1,32 +1,50 @@ -# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.10 2000/01/19 11:58:23 takayama Exp $ +# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.31 2015/02/21 06:20:36 ohara Exp $ +OpenXM_HOME=../.. +PREFIX=${OpenXM_HOME} +DISTDIR=${OpenXM_HOME}/../OpenXM_dist +MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ +# Original. http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ +#DISTNAME=gc-7.2b +DISTNAME=gc6.8 +DISTFILES=${DISTNAME}.tar.gz + ASIR = ../../../OpenXM_contrib2/asir2000 PARI = ../pari -all: configure +all: configure install-pari @if [ ! -f ./.make_done ]; then \ - (cd $(ASIR) ; make all) \ + (cd ${ASIR} ; ${MAKE} all) \ fi @touch ./.make_done install: all - (cd $(ASIR) ; make install ; make install-lib) + (cd ${ASIR} ; ${MAKE} install-openxm) clean: - (cd $(ASIR) ; make clean) - @rm -f ./.make_done ./.configure_done ./.install-pari_done + (cd ${ASIR} ; ${MAKE} clean) + @rm -f ./.make_* ./.configure_* ./.install-* ./.fetch* distclean: clean @cat BINARIES | xargs -t rm -rf -configure: install-pari +fetch: + @if [ ! -f .fetch_done ]; then \ + for i in ${DISTFILES}; do \ + ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \ + done \ + fi + @touch .fetch_done + +configure: fetch @if [ ! -f ./.configure_done ]; then \ - (cd $(ASIR) ; ./configure ; xmkmf ; make Makefiles ; make depend) \ + (cd $(ASIR) ; \ + ./configure --enable-plot --prefix="`cd ../../OpenXM; pwd`") \ fi @touch ./.configure_done install-pari: @if [ ! -f ./.install-pari_done ]; then \ - (cd $(PARI) ; make install) \ + (cd ${PARI} ; ${MAKE} install) \ fi @touch ./.install-pari_done