version 1.1, 2011/05/13 07:32:39 |
version 1.3, 2014/03/29 21:09:28 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/pcc/Makefile,v 1.2 2012/08/27 05:05:57 noro Exp $ |
OpenXM_HOME=../.. |
OpenXM_HOME=../.. |
PREFIX=${OpenXM_HOME} |
PREFIX=${OpenXM_HOME} |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
Line 7 MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/mis |
|
Line 7 MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/mis |
|
DISTNAME=pcc-101228 |
DISTNAME=pcc-101228 |
DISTFILES=${DISTNAME}.tgz |
DISTFILES=${DISTNAME}.tgz |
WRKSRC=work/${DISTNAME} |
WRKSRC=work/${DISTNAME} |
BUILDDIR=${WRKSRC}/cc/cpp |
BUILDDIR=${WRKSRC}/cpp |
PATCHFILES = pcc.diff |
PATCHFILES = pcc.diff |
|
|
all : build |
all : build |
|
|
cat $$i | (cd ${WRKSRC}; patch -p0) ; \ |
cat $$i | (cd ${WRKSRC}; patch -p0) ; \ |
fi ; \ |
fi ; \ |
done ; \ |
done ; \ |
|
(cd work/${DISTNAME}; mv -f cc/cpp cpp; rm -rf cc); \ |
fi |
fi |
@touch work/.patch_done |
@touch work/.patch_done |
|
|
configure: patch |
configure: patch |
@if [ ! -f work/.configure_done ]; then \ |
@if [ ! -f work/.configure_done ]; then \ |
prefix=`cd ${OpenXM_HOME}; pwd` ; \ |
prefix=`cd ${OpenXM_HOME}; pwd` ; \ |
(cd ${WRKSRC} ; CC=${CC} ./configure --prefix="$$prefix" --libexecdir="$$prefix"/bin ) ; \ |
(cd ${WRKSRC} ; ./configure --prefix="$$prefix" --libexecdir="$$prefix"/bin ) ; \ |
fi |
fi |
@touch work/.configure_done |
@touch work/.configure_done |
|
|
build : configure |
build : configure |
@if [ ! -f work/.build_done ]; then \ |
@if [ ! -f work/.build_done ]; then \ |
(cd ${BUILDDIR} ; ${MAKE} CC=${CC}) ; \ |
(cd ${BUILDDIR} ; ${MAKE}) ; \ |
fi |
fi |
@touch work/.build_done |
@touch work/.build_done |
|
|