Annotation of OpenXM/src/pari/Makefile, Revision 1.28
1.28 ! ohara 1: # $OpenXM: OpenXM/src/pari/Makefile,v 1.27 2020/08/26 06:03:31 noro Exp $
1.21 ohara 2:
1.28 ! ohara 3: OpenXM_HOME=../..
! 4: PREFIX=${OpenXM_HOME}
! 5: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
! 6: RM = /bin/rm
! 7: RANLIB=ranlib
! 8: PARI=pari-2.11.4
! 9: PATCH_FILE=${PARI}.diff
! 10: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
! 11: DIST_SUFFIX=.tar.gz
! 12: DISTFILES=${PARI}${DIST_SUFFIX}
! 13: GALFILES=galdata.tgz galpol.tgz
! 14:
! 15: all: build
! 16:
! 17: fetch:
! 18: -mkdir work
! 19: @if [ ! -f work/.fetch_done ]; then \
! 20: for i in ${DISTFILES} ${GALFILES}; do \
! 21: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}"$$i" ${DISTDIR}; \
! 22: done; \
! 23: fi
! 24: @touch work/.fetch_done
! 25:
! 26: extract: fetch
! 27: @if [ ! -f work/.extract_done ]; then \
! 28: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
! 29: for i in ${GALFILES}; do \
! 30: cat ${DISTDIR}/"$$i" | (cd work/${PARI} ; tar xzvf -) ; \
! 31: done; \
! 32: fi
! 33: @touch work/.extract_done
! 34:
! 35: patch: extract
! 36: @if [ ! -f work/.patch_done ]; then \
! 37: if [ -f "${PATCH_FILE}" ]; then \
! 38: cat ${PATCH_FILE} | (cd work/${PARI} ; patch -p1 ) ; \
! 39: fi \
! 40: fi
! 41: @touch work/.patch_done
! 42:
! 43: configure: patch
! 44: @if [ ! -f work/.configure_done ]; then \
! 45: prefix=`cd ${OpenXM_HOME}; pwd` ; \
! 46: (cd work/${PARI} ; ./Configure --prefix="$$prefix" ) ; \
1.21 ohara 47: fi
1.28 ! ohara 48: @touch work/.configure_done
! 49:
! 50: build: configure
! 51: @if [ ! -f work/.build_done ]; then \
! 52: d=`cd work/${PARI} ; config/objdir` ; \
! 53: (cd work/${PARI}/$$d ; ${MAKE} lib-sta; ${MAKE} gp) ; \
! 54: fi
! 55: @touch work/.build_done
! 56:
! 57: build-doc: configure
! 58: @if [ ! -f work/.build_doc_done ]; then \
! 59: (cd work/${PARI} ; ${MAKE} doc) ; \
! 60: fi
! 61: @touch work/.build_doc_done
! 62:
! 63: install: build
! 64: -mkdir ${PREFIX}/bin ${PREFIX}/lib
! 65: @if [ ! -f work/.install_done ]; then \
! 66: d=`cd work/${PARI} ; config/objdir` ; \
! 67: (cd work/${PARI}/$$d ; ${MAKE} install-lib-sta install-include install-lib-dyn install-data) ; \
! 68: ${RANLIB} ${PREFIX}/lib/libpari.a ; \
! 69: fi
! 70: @touch work/.install_done
! 71:
! 72: install-doc: build-doc
! 73: -mkdir ${PREFIX}/doc/pari
! 74: @if [ ! -f work/.install_doc_done ]; then \
! 75: for i in users.dvi tutorial.dvi; do \
! 76: cp work/${PARI}/doc/$$i ${PREDIX}/doc/pari ; \
! 77: done ; \
! 78: fi
! 79: @touch work/.install_doc_done
! 80:
! 81: clean:
! 82: -${RM} -rf work
! 83:
! 84: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>