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

Annotation of OpenXM/src/pari/Makefile.2.0, Revision 1.8

1.8     ! takayama    1: # $OpenXM: OpenXM/src/pari/Makefile.2.0,v 1.7 2017/03/31 02:50:47 takayama Exp $
1.1       ohara       2: OpenXM_HOME=../..
                      3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                      5: RM = /bin/rm
                      6: RANLIB=ranlib
1.8     ! takayama    7: PARI=pari-2.0.21.beta
1.1       ohara       8: PATCH_FILE=${PARI}.diff
1.5       ohara       9: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.8     ! takayama   10: DIST_SUFFIX=.tgz
1.2       ohara      11: DISTFILES=${PARI}${DIST_SUFFIX}
1.1       ohara      12:
                     13: all: build
                     14:
                     15: fetch:
                     16:        -mkdir work
                     17:        @if [ ! -f work/.fetch_done ]; then \
                     18:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
                     19:        fi
                     20:        @touch work/.fetch_done
                     21:
                     22: extract: fetch
                     23:        @if [ ! -f work/.extract_done ]; then \
                     24:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
                     25:        fi
                     26:        @touch work/.extract_done
                     27:
                     28: patch: extract
                     29:        @if [ ! -f work/.patch_done ]; then \
1.3       ohara      30:            if [ -f "${PATCH_FILE}" ]; then \
1.4       ohara      31:                cat ${PATCH_FILE} | (cd work/${PARI} ; patch -p1 ) ; \
1.3       ohara      32:            fi \
1.1       ohara      33:        fi
                     34:        @touch work/.patch_done
                     35:
                     36: configure: patch
                     37:        @if [ ! -f work/.configure_done ]; then \
                     38:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
                     39:                (cd work/${PARI} ; ./Configure --prefix="$$prefix" ) ; \
                     40:        fi
                     41:        @touch work/.configure_done
                     42:
                     43: build: configure
                     44:        @if [ ! -f work/.build_done ]; then \
1.8     ! takayama   45:                (cd work/${PARI} ; ${MAKE} lib-sta) ; \
1.1       ohara      46:        fi
                     47:        @touch work/.build_done
                     48:
                     49: build-doc: configure
                     50:        @if [ ! -f work/.build_doc_done ]; then \
                     51:                (cd work/${PARI} ; ${MAKE} doc) ; \
                     52:        fi
                     53:        @touch work/.build_doc_done
                     54:
                     55: install: build
                     56:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
                     57:        @if [ ! -f work/.install_done ]; then \
1.8     ! takayama   58:                (cd work/${PARI} ; ${MAKE} install-lib-sta install-include) ; \
        !            59:                ${RANLIB} ${PREFIX}/lib/libpari.a ; \
1.1       ohara      60:        fi
                     61:        @touch work/.install_done
                     62:
                     63: install-doc: build-doc
                     64:        -mkdir ${PREFIX}/doc/pari
                     65:        @if [ ! -f work/.install_doc_done ]; then \
                     66:                for i in users.dvi tutorial.dvi; do \
                     67:                        cp work/${PARI}/doc/$$i ${PREDIX}/doc/pari ; \
                     68:                done ; \
                     69:        fi
                     70:        @touch work/.install_doc_done
                     71:
                     72: clean:
                     73:        -${RM} -rf work
                     74:
                     75: distclean: clean

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