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