Annotation of OpenXM/src/pcc/Makefile, Revision 1.4
1.4 ! ohara 1: # $OpenXM: OpenXM/src/pcc/Makefile,v 1.3 2014/03/29 21:09:28 ohara Exp $
1.1 ohara 2: OpenXM_HOME=../..
3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
5: RM = /bin/rm
1.4 ! ohara 6: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.1 ohara 7: DISTNAME=pcc-101228
8: DISTFILES=${DISTNAME}.tgz
9: WRKSRC=work/${DISTNAME}
1.3 ohara 10: BUILDDIR=${WRKSRC}/cpp
1.1 ohara 11: PATCHFILES = pcc.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: for i in ${PATCHFILES} "" ; do \
31: if [ -f "$$i" ]; then \
32: cat $$i | (cd ${WRKSRC}; patch -p0) ; \
33: fi ; \
34: done ; \
1.3 ohara 35: (cd work/${DISTNAME}; mv -f cc/cpp cpp; rm -rf cc); \
1.1 ohara 36: fi
37: @touch work/.patch_done
38:
39: configure: patch
40: @if [ ! -f work/.configure_done ]; then \
41: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.3 ohara 42: (cd ${WRKSRC} ; ./configure --prefix="$$prefix" --libexecdir="$$prefix"/bin ) ; \
1.1 ohara 43: fi
44: @touch work/.configure_done
45:
46: build : configure
47: @if [ ! -f work/.build_done ]; then \
1.3 ohara 48: (cd ${BUILDDIR} ; ${MAKE}) ; \
1.1 ohara 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>