[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / pari

Annotation of OpenXM/src/pari/Makefile, Revision 1.29

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>