Annotation of OpenXM/src/pcc/Makefile, Revision 1.2
1.2 ! noro 1: # $OpenXM: OpenXM/src/pcc/Makefile,v 1.1 2011/05/13 07:32:39 ohara Exp $
1.1 ohara 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm
6: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
7: DISTNAME=pcc-101228
8: DISTFILES=${DISTNAME}.tgz
9: WRKSRC=work/${DISTNAME}
10: BUILDDIR=${WRKSRC}/cc/cpp
11: PATCHFILES = pcc.diff
1.2 ! noro 12: CC=gcc
1.1 ohara 13:
14: all : build
15:
16: fetch:
17: -mkdir work
18: @if [ ! -f work/.fetch_done ]; then \
19: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
20: fi
21: @touch work/.fetch_done
22:
23: extract: fetch
24: @if [ ! -f work/.extract_done ]; then \
25: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
26: fi
27: @touch work/.extract_done
28:
29: patch: extract
30: @if [ ! -f work/.patch_done ]; then \
31: for i in ${PATCHFILES} "" ; do \
32: if [ -f "$$i" ]; then \
33: cat $$i | (cd ${WRKSRC}; patch -p0) ; \
34: fi ; \
35: done ; \
36: fi
37: @touch work/.patch_done
38:
39: configure: patch
40: @if [ ! -f work/.configure_done ]; then \
41: prefix=`cd ${OpenXM_HOME}; pwd` ; \
42: (cd ${WRKSRC} ; CC=${CC} ./configure --prefix="$$prefix" --libexecdir="$$prefix"/bin ) ; \
43: fi
44: @touch work/.configure_done
45:
46: build : configure
47: @if [ ! -f work/.build_done ]; then \
48: (cd ${BUILDDIR} ; ${MAKE} CC=${CC}) ; \
49: fi
50: @touch work/.build_done
51:
52: install: build
53: -mkdir ${PREFIX}/bin ${PREFIX}/lib
54: @if [ ! -f work/.install_done ]; then \
55: (cd ${BUILDDIR} ; ${MAKE} install) ; \
56: fi
57: @touch work/.install_done
58:
59: clean:
60: -${RM} -rf work
61:
62: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>