[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.2

1.2     ! ohara       1: # $OpenXM: OpenXM/src/pari/Makefile.2.0,v 1.1 2004/12/08 05:24:21 ohara Exp $
1.1       ohara       2: OpenXM_HOME=../..
                      3: PREFIX=${OpenXM_HOME}
                      4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                      5: RM = /bin/rm
                      6: RANLIB=ranlib
                      7: PARI=pari-2.0.17.beta
                      8: PATCH_FILE=${PARI}.diff
                      9: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.2     ! ohara      10: DIST_SUFFIX=.tgz
        !            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 \
                     30:            cat ${PATCH_FILE} | (cd work ; patch -p ) ; \
                     31:        fi
                     32:        @touch work/.patch_done
                     33:
                     34: configure: patch
                     35:        @if [ ! -f work/.configure_done ]; then \
                     36:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
                     37:                (cd work/${PARI} ; ./Configure --prefix="$$prefix" ) ; \
                     38:        fi
                     39:        @touch work/.configure_done
                     40:
                     41: build: configure
                     42:        @if [ ! -f work/.build_done ]; then \
                     43:                (cd work/${PARI} ; ${MAKE} lib-sta) ; \
                     44:        fi
                     45:        @touch work/.build_done
                     46:
                     47: build-doc: configure
                     48:        @if [ ! -f work/.build_doc_done ]; then \
                     49:                (cd work/${PARI} ; ${MAKE} doc) ; \
                     50:        fi
                     51:        @touch work/.build_doc_done
                     52:
                     53: install: build
                     54:        -mkdir ${PREFIX}/bin ${PREFIX}/lib
                     55:        @if [ ! -f work/.install_done ]; then \
                     56:                (cd work/${PARI} ; ${MAKE} install-lib-sta install-include) ; \
                     57:                ${RANLIB} ${PREFIX}/lib/libpari.a ; \
                     58:        fi
                     59:        @touch work/.install_done
                     60:
                     61: install-doc: build-doc
                     62:        -mkdir ${PREFIX}/doc/pari
                     63:        @if [ ! -f work/.install_doc_done ]; then \
                     64:                for i in users.dvi tutorial.dvi; do \
                     65:                        cp work/${PARI}/doc/$$i ${PREDIX}/doc/pari ; \
                     66:                done ; \
                     67:        fi
                     68:        @touch work/.install_doc_done
                     69:
                     70: clean:
                     71:        -${RM} -rf work
                     72:
                     73: distclean: clean

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