Annotation of OpenXM/src/gmp/Makefile, Revision 1.10
1.10 ! ohara 1: # $OpenXM: OpenXM/src/gmp/Makefile,v 1.9 2004/03/25 04:54:36 takayama Exp $
1.1 takayama 2: OpenXM_HOME=../..
1.7 takayama 3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
1.10 ! ohara 5: RM = /bin/rm
1.8 ohara 6: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.7 takayama 7: DISTFILES=gmp-4.1.2.tar.gz
8: GMP=gmp-4.1.2
9:
10: all : build
11:
12: fetch:
1.10 ! ohara 13: -mkdir work
! 14: @if [ ! -f work/.fetch_done ]; then \
1.8 ohara 15: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.7 takayama 16: fi
1.10 ! ohara 17: @touch work/.fetch_done
1.7 takayama 18:
1.8 ohara 19: extract: fetch
1.10 ! ohara 20: @if [ ! -f work/.extract_done ]; then \
1.8 ohara 21: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
1.7 takayama 22: fi
1.10 ! ohara 23: @touch work/.extract_done
1.8 ohara 24:
25: patch: extract
1.10 ! ohara 26: @touch work/.patch_done
1.7 takayama 27:
1.9 takayama 28: configure: patch
1.10 ! ohara 29: @if [ ! -f work/.configure_done ]; then \
1.9 takayama 30: (cd work/${GMP} ; ./configure --prefix `cd ../..; cd ${OpenXM_HOME}; pwd`) ; \
31: fi
1.10 ! ohara 32: @touch work/.configure_done
1.9 takayama 33:
34: build : configure
1.10 ! ohara 35: @if [ ! -f work/.build_done ]; then \
1.9 takayama 36: (cd work/${GMP} ; ${MAKE}) ; \
1.7 takayama 37: fi
1.10 ! ohara 38: @touch work/.build_done
1.7 takayama 39:
1.8 ohara 40: install: build
41: -mkdir ${PREFIX}/bin ${PREFIX}/lib
1.10 ! ohara 42: @if [ ! -f work/.install_done ]; then \
1.8 ohara 43: (cd work/${GMP} ; ${MAKE} install) ; \
44: for i in config.h gmp-impl.h gmp-mparam.h; do \
45: cp work/${GMP}/$$i ${OpenXM_HOME}/include ; \
46: done ; \
1.7 takayama 47: fi
1.10 ! ohara 48: @touch work/.install_done
1.7 takayama 49:
50: clean:
1.8 ohara 51: -$(RM) -rf work
52:
53: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>