Annotation of OpenXM/src/gmp/Makefile-ports, Revision 1.1
1.1 ! takayama 1: # $OpenXM$
! 2: OpenXM_HOME=../..
! 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.1.tar.gz
! 9: GMP=gmp-3.1.1
! 10:
! 11: all : build
! 12: install : post-install
! 13:
! 14: fetch:
! 15: @if test ! -f .fetch_done ; \
! 16: then \
! 17: ${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/${DISTFILES} ${DISTDIR}; \
! 18: fi
! 19: @touch .fetch_done
! 20:
! 21: patch : fetch
! 22: @if test ! -f .patch_done ; \
! 23: then \
! 24: $(RM) work ; \
! 25: mkdir work ; \
! 26: (cd work ; tar xzvf ../${DISTDIR}/${DISTFILES} ) ; \
! 27: fi
! 28: @touch .patch_done
! 29: # (cd work; patch -c -p0 <../patch-aa ; patch -c -p0 <../patch-bb ; patch -c -p0 <../patch-cc) ; \
! 30:
! 31: build : patch
! 32: @if test ! -f .build_done ; \
! 33: then \
! 34: (cd work/${GMP} ; ./configure --prefix `pwd`/../../../../../OpenXM ; make ) ; \
! 35: fi
! 36: @touch .build_done
! 37:
! 38: post-install: build
! 39: @if test ! -f .post-install_done ; \
! 40: then \
! 41: -mkdir ${PREFIX}/lib ${PREFIX}/bin ; \
! 42: (cd work/${GMP} ; make install) ; \
! 43: fi
! 44: @touch .post-install_done
! 45:
! 46: clean:
! 47: $(RM) .*_done
! 48: -(cd work/${GMP} ; make clean)
! 49: distclean:
! 50: $(RM) .*_done ./.use_ports
! 51: -(cd work/${GMP} ; make distclean)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>