Annotation of OpenXM/src/pari/Makefile.2.0, Revision 1.7
1.7 ! takayama 1: # $OpenXM: OpenXM/src/pari/Makefile.2.0,v 1.6 2017/03/31 02:18:33 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.6 takayama 7: PARI=pari-2.9.1
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.6 takayama 10: DIST_SUFFIX=.tar.gz
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.6 takayama 45: (cd work/${PARI} ; ${MAKE} all) ; \
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.6 takayama 58: (cd work/${PARI} ; ${MAKE} install) ; \
1.1 ohara 59: fi
60: @touch work/.install_done
61:
62: install-doc: build-doc
63: -mkdir ${PREFIX}/doc/pari
64: @if [ ! -f work/.install_doc_done ]; then \
65: for i in users.dvi tutorial.dvi; do \
66: cp work/${PARI}/doc/$$i ${PREDIX}/doc/pari ; \
67: done ; \
68: fi
69: @touch work/.install_doc_done
70:
71: clean:
72: -${RM} -rf work
73:
74: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>