Annotation of OpenXM/src/phcpack/Makefile, Revision 1.2
1.2 ! ohara 1: # $OpenXM: OpenXM/src/phcpack/Makefile,v 1.1 2005/08/15 06:17:22 ohara Exp $
1.1 ohara 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm
1.2 ! ohara 6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.1 ohara 7: # Release 2.3 of PHCpack. http://www2.math.uic.edu/~jan/download.html
8: DISTNAME=PHCv2_3p
9: DISTFILES=${DISTNAME}.tar.gz
10: WRKSRC=work/${DISTNAME}/Objects
11: PATCHFILES = ${DISTNAME}.diff
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 ${PATCHFILES} | (cd ${WRKSRC}; patch -p0) ; \
31: fi
32: @touch work/.patch_done
33:
34: build : patch
35: @if [ ! -f work/.build_done ]; then \
36: (cd ${WRKSRC}; ${MAKE}) ; \
37: fi
38: @touch work/.build_done
39:
40: install: build
41: @if [ ! -f work/.install_done ]; then \
42: (cd ${WRKSRC}; ${MAKE} install) ; \
43: fi
44: @touch work/.install_done
45:
46: clean:
47: -$(RM) -rf work
48:
49: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>