Annotation of OpenXM/src/gmp/Makefile, Revision 1.7
1.7 ! takayama 1: # $OpenXM: OpenXM/src/gmp/Makefile,v 1.6 2004/02/24 00:02:10 takayama Exp $
1.1 takayama 2: OpenXM_HOME=../..
1.7 ! takayama 3: PREFIX=${OpenXM_HOME}
! 4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
! 5: RM = /bin/rm -rf
! 6: MASTER_CITES=ftp.math.kobe-u.ac.jp
! 7: # MASTER_CITES2 =
! 8: #DISTFILES=gmp-3.1.tar.gz
! 9: #GMP=gmp-3.1
! 10: DISTFILES=gmp-4.1.2.tar.gz
! 11: GMP=gmp-4.1.2
! 12:
! 13: all : build
! 14: install : post-install
! 15:
! 16: fetch:
! 17: @if test ! -f .fetch_done ; \
! 18: then \
! 19: ${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/${DISTFILES} ${DISTDIR}; \
! 20: fi
! 21: @touch .fetch_done
! 22:
! 23: patch : fetch
! 24: @if test ! -f .patch_done ; \
! 25: then \
! 26: $(RM) work ; \
! 27: mkdir work ; \
! 28: (cd work ; tar xzvf ../${DISTDIR}/${DISTFILES} ) ; \
! 29: fi
! 30: @touch .patch_done
! 31: # (cd work; patch -c -p0 <../patch-aa ; patch -c -p0 <../patch-bb ; patch -c -p0 <../patch-cc) ; \
! 32:
! 33: build : patch
! 34: @if test ! -f .build_done ; \
! 35: then \
! 36: (cd work/${GMP} ; ./configure --prefix `pwd`/../../../../../OpenXM ; make ) ; \
! 37: fi
! 38: @touch .build_done
! 39:
! 40: post-install: build
! 41: @if test ! -f .post-install_done ; \
! 42: then \
! 43: if [ ! -d ${PREFIX}/lib ]; then mkdir ${PREFIX}/lib ; fi ; \
! 44: if [ ! -d ${PREFIX}/bin ]; then mkdir ${PREFIX}/bin ; fi ; \
! 45: (cd work/${GMP} ; make install) ; \
! 46: (cd work/${GMP} ; cp gmp-impl.h config.h gmp-mparam.h ../../${OpenXM_HOME}/include) ; \
! 47: fi
! 48: @touch .post-install_done
! 49:
! 50: clean:
! 51: $(RM) .*_done
! 52: -(cd work/${GMP} ; make clean)
! 53: distclean:
! 54: $(RM) .*_done ./.use_ports
! 55: -(cd work/${GMP} ; make distclean)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>