version 1.3, 2000/01/08 18:25:36 |
version 1.22, 2008/08/11 15:53:33 |
|
|
# $OpenXM: OpenXM/src/pari/Makefile,v 1.2 2000/01/08 17:56:58 maekawa Exp $ |
# $OpenXM: OpenXM/src/pari/Makefile,v 1.21 2004/12/09 18:54:31 ohara Exp $ |
|
|
PARI = ../../../OpenXM_contrib/pari |
# Choose one of pari version. |
CURDIR = ../../OpenXM/src/pari |
# Example. |
BINDIR = ../../bin |
# $ make install ( for PARI/GP 2.0.x) |
|
# $ make PARI_VER=2.2 install ( for PARI/GP 2.2.x) |
|
|
all: configure |
PARI_VER=2.0 |
@if [ ! -f ./.make_done ]; then \ |
#PARI_VER=2.2 |
(cd $(PARI) ; make all) \ |
|
fi |
|
@touch ./.make_done |
|
|
|
install: all |
## for PARI/GP unstable (2.2) |
@if [ ! -f ./.install_done ]; then \ |
PARI_DEVEL_VER=pari-2.2.8.alpha |
(cd $(PARI) ; make install install-lib-sta) \ |
PARI_DEVEL_SUFFIX=.tar.gz |
fi |
|
@touch ./.install_done |
|
|
|
clean: |
## for PARI/GP unstable (2.2) |
@if [ -f ./.make_done ]; then \ |
PARI_23_VER=pari-2.3.4 |
(cd $(PARI) ; make clean) \ |
PARI_23_SUFFIX=.tar.gz |
fi |
|
@rm -f ./.make_done ./.configure_done |
|
|
|
distclean: |
all: build |
rm -rf ../lib/libpari.* ../lib/pari |
|
rm -rf ../include/pari |
|
rm -rf ../bin/gp ../bin/gp-2.0 |
|
@rm -f ./.install_done |
|
|
|
configure: |
fetch extract patch configure build build-doc install install-doc clean distclean: |
@if [ ! -f ./.configure_done ]; then \ |
@if [ "${PARI_VER}" = 2.3 ]; then \ |
(cd $(PARI) ; ./Configure --prefix=../../../OpenXM) \ |
${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 |
fi |
@touch ./.configure_done |
|