version 1.6, 2003/11/12 13:31:45 |
version 1.7, 2003/11/14 03:20:07 |
|
|
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.5 2003/11/12 12:56:05 iwane Exp $ |
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.6 2003/11/12 13:31:45 iwane Exp $ |
# |
# |
# |
# |
# |
# |
Line 26 MASTER_CITES=ftp.math.sci.kobe-u.ac.jp |
|
Line 26 MASTER_CITES=ftp.math.sci.kobe-u.ac.jp |
|
NTL_LIBDIR=$(PREFIX)/lib/NTL |
NTL_LIBDIR=$(PREFIX)/lib/NTL |
LIBDIR=$(PREFIX)/lib |
LIBDIR=$(PREFIX)/lib |
|
|
DISTDIR=$(PWD)/distfile |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
DISTFILEDIR=ntl-5.3.1 |
DISTFILEDIR=ntl-5.3.1 |
DISTFILE=ntl-5.3.1.tar.gz |
DISTFILE=ntl-5.3.1.tar.gz |
WORK=$(PWD)/work |
WORK=$(PWD)/work |
|
|
@-$(RM) -f .*-ntl-done |
@-$(RM) -f .*-ntl-done |
|
|
|
|
pre-fetch-ntl: |
fetch-ntl: |
@if [ ! -f .pre-fetch-ntl-done ]; then\ |
@if [ ! -f .fetch-ntl-done ]; then \ |
mkdir -p ${DISTDIR} ${WORK}; \ |
${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/1.2.2/${DISTFILE} ${DISTDIR}; \ |
touch .pre-fetch-ntl-done; \ |
touch .fetch-ntl-done; \ |
fi |
fi |
|
|
fetch-ntl: pre-fetch-ntl |
extract-ntl: fetch-ntl |
@if [ ! -f .fetch-ntl-done ]; then \ |
-mkdir work |
if [ ! -f ${DISTDIR}/${DISTFILE} ]; then \ |
@if [ ! -f .extract-ntl-done ]; then \ |
(cd ${DISTDIR}; wget --no-directories --passive-ftp ftp://$(MASTER_CITES)/pub/OpenXM/misc/1.2.2/$(DISTFILE)) ; \ |
|
fi ; \ |
|
(cd ${WORK}; tar xvzf ${DISTDIR}/${DISTFILE}); \ |
(cd ${WORK}; tar xvzf ${DISTDIR}/${DISTFILE}); \ |
touch .fetch-ntl-done; \ |
touch .extract-ntl-done; \ |
fi |
fi |
|
|
patch-ntl: fetch-ntl |
patch-ntl: extract-ntl |
@if [ ! -f .patch-ntl-done ]; then \ |
@if [ ! -f .patch-ntl-done ]; then \ |
touch .patch-ntl-done; \ |
touch .patch-ntl-done; \ |
fi |
fi |