Annotation of OpenXM/src/pari/Makefile.2.0, Revision 1.12
1.12 ! ohara 1: # $OpenXM: OpenXM/src/pari/Makefile.2.0,v 1.11 2020/08/26 06:03:31 noro 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.12 ! ohara 12: GALFILES=galdata.tgz galpol.tgz
1.1 ohara 13:
14: all: build
15:
16: fetch:
17: -mkdir work
18: @if [ ! -f work/.fetch_done ]; then \
1.12 ! ohara 19: for i in ${DISTFILES} ${GALFILES}; do \
! 20: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}"$$i" ${DISTDIR}; \
! 21: done; \
1.1 ohara 22: fi
23: @touch work/.fetch_done
24:
25: extract: fetch
26: @if [ ! -f work/.extract_done ]; then \
27: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
1.12 ! ohara 28: for i in ${GALFILES}; do \
! 29: cat ${DISTDIR}/"$$i" | (cd work/${PARI} ; tar xzvf -) ; \
! 30: done; \
1.1 ohara 31: fi
32: @touch work/.extract_done
33:
34: patch: extract
35: @if [ ! -f work/.patch_done ]; then \
1.3 ohara 36: if [ -f "${PATCH_FILE}" ]; then \
1.4 ohara 37: cat ${PATCH_FILE} | (cd work/${PARI} ; patch -p1 ) ; \
1.3 ohara 38: fi \
1.1 ohara 39: fi
40: @touch work/.patch_done
41:
42: configure: patch
43: @if [ ! -f work/.configure_done ]; then \
44: prefix=`cd ${OpenXM_HOME}; pwd` ; \
45: (cd work/${PARI} ; ./Configure --prefix="$$prefix" ) ; \
46: fi
47: @touch work/.configure_done
48:
49: build: configure
50: @if [ ! -f work/.build_done ]; then \
1.10 ohara 51: d=`cd work/${PARI} ; config/objdir` ; \
1.11 noro 52: (cd work/${PARI}/$$d ; ${MAKE} lib-sta; ${MAKE} gp) ; \
1.1 ohara 53: fi
54: @touch work/.build_done
55:
56: build-doc: configure
57: @if [ ! -f work/.build_doc_done ]; then \
58: (cd work/${PARI} ; ${MAKE} doc) ; \
59: fi
60: @touch work/.build_doc_done
61:
62: install: build
63: -mkdir ${PREFIX}/bin ${PREFIX}/lib
64: @if [ ! -f work/.install_done ]; then \
1.10 ohara 65: d=`cd work/${PARI} ; config/objdir` ; \
1.12 ! ohara 66: (cd work/${PARI}/$$d ; ${MAKE} install-lib-sta install-include install-lib-dyn install-data) ; \
1.8 takayama 67: ${RANLIB} ${PREFIX}/lib/libpari.a ; \
1.1 ohara 68: fi
69: @touch work/.install_done
70:
71: install-doc: build-doc
72: -mkdir ${PREFIX}/doc/pari
73: @if [ ! -f work/.install_doc_done ]; then \
74: for i in users.dvi tutorial.dvi; do \
75: cp work/${PARI}/doc/$$i ${PREDIX}/doc/pari ; \
76: done ; \
77: fi
78: @touch work/.install_doc_done
79:
80: clean:
81: -${RM} -rf work
82:
83: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>