=================================================================== RCS file: /home/cvs/OpenXM/src/pari/Makefile,v retrieving revision 1.1 retrieving revision 1.25 diff -u -p -r1.1 -r1.25 --- OpenXM/src/pari/Makefile 2000/01/08 17:17:50 1.1 +++ OpenXM/src/pari/Makefile 2017/03/31 03:17:59 1.25 @@ -1,26 +1,29 @@ -# $OpenXM$ +# $OpenXM: OpenXM/src/pari/Makefile,v 1.24 2017/03/31 02:18:33 takayama Exp $ -PARI = ../../../OpenXM_contrib/pari -CURDIR = ../../OpenXM/src/pari -BINDIR = ../../bin +# Choose one of pari version. +# Example. +# $ make install ( for PARI/GP 2.0.x) +# $ make PARI_VER=2.2 install ( for PARI/GP 2.2.x) -all: configure - @if [ ! -f ./.make_done ]; then \ - (cd $(PARI) ; make all) \ - fi - @touch ./.make_done +#PARI_VER=2.0 +#PARI_VER=2.2 +PARI_VER=2.3 -install: all - (cd $(PARI) ; make install install-lib-sta) +## for PARI/GP unstable (2.2) +PARI_DEVEL_VER=pari-2.2.8.alpha +PARI_DEVEL_SUFFIX=.tar.gz -clean: - @if [ -f ./.make_done ]; then \ - (cd $(PARI) ; make clean) \ - fi - @rm -f ./.make_done ./.configure_done +## for PARI/GP unstable (2.2) +PARI_23_VER=pari-2.3.4 +PARI_23_SUFFIX=.tar.gz -configure: - @if [ ! -f ./.configure_done ]; then \ - (cd $(PARI) ; ./Configure --prefix=../../../OpenXM) \ +all: build + +fetch extract patch configure build build-doc install install-doc clean distclean: + @if [ "${PARI_VER}" = 2.3 ]; then \ + ${MAKE} -f Makefile.2.0 PARI=${PARI_23_VER} DIST_SUFFIX=${PARI_23_SUFFIX} PATCH_FILE=${PARI_DEVEL_VER}.diff $@ ; \ + elif [ "${PARI_VER}" = 2.2 ]; then \ + ${MAKE} -f Makefile.2.0 PARI=${PARI_DEVEL_VER} DIST_SUFFIX=${PARI_DEVEL_SUFFIX} $@ ; \ + else \ + ${MAKE} -f Makefile.2.0 $@ ; \ fi - @touch ./.configure_done