version 1.2, 2000/01/08 18:43:02 |
version 1.6, 2015/02/21 06:20:36 |
|
|
# $OpenXM: OpenXM/src/tigers/Makefile,v 1.1 2000/01/07 22:53:42 maekawa Exp $ |
# $OpenXM: OpenXM/src/tigers/Makefile,v 1.5 2005/01/18 16:24:22 ohara Exp $ |
|
OpenXM_HOME=../.. |
|
PREFIX=${OpenXM_HOME} |
|
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
|
RM = /bin/rm |
|
RANLIB=ranlib |
|
INSTALL_PROGRAM=install -c -s |
|
DISTNAME=TiGERS_0.9 |
|
PATCH_FILE=tigers.patch |
|
MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
|
DIST_SUFFIX=.taz |
|
DISTFILES=${DISTNAME}${DIST_SUFFIX} |
|
|
TIGERS = ../../../OpenXM_contrib/TiGERS_0.9 |
all: build |
CURDIR = ../../OpenXM/src/tigers |
|
BINDIR = ../../bin |
|
|
|
all: patch |
fetch: |
@if [ ! -f ./.make_done ]; then \ |
-mkdir work |
(cd $(TIGERS) ; make all) \ |
@if [ ! -f work/.fetch_done ]; then \ |
fi |
${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \ |
@touch ./.make_done |
fi |
|
@touch work/.fetch_done |
|
|
install: all |
extract: fetch |
install -c -s $(TIGERS)/tigers $(BINDIR)/tigers |
@if [ ! -f work/.extract_done ]; then \ |
|
cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \ |
|
fi |
|
@touch work/.extract_done |
|
|
clean: patch-clean |
patch: extract |
(cd $(TIGERS) ; rm -f *.o tigers) |
@if [ ! -f work/.patch_done ]; then \ |
@rm -f ./.make_done |
if [ -f "${PATCH_FILE}" ]; then \ |
|
for i in NOTE.txt README.change memo.txt; do \ |
|
touch work/${DISTNAME}/$$i ; \ |
|
done ; \ |
|
cat ${PATCH_FILE} | (cd work/${DISTNAME} ; patch -p1 -f) ; \ |
|
fi \ |
|
fi |
|
@touch work/.patch_done |
|
|
distclean: |
build: patch |
rm -f $(BINDIR)/tigers |
@if [ ! -f work/.build_done ]; then \ |
|
(cd work/${DISTNAME}; ${MAKE} all) ; \ |
patch: |
|
@if [ ! -f ./.patch_done ]; then \ |
|
(cd $(TIGERS) ; patch < $(CURDIR)/tigers.patch) \ |
|
fi |
fi |
@touch ./.patch_done |
@touch work/.build_done |
|
|
patch-clean: |
install: build |
@if [ -f ./.patch_done ]; then \ |
-mkdir ${PREFIX}/bin |
(cd $(TIGERS) ; patch -R < $(CURDIR)/tigers.patch) \ |
@if [ ! -f work/.install_done ]; then \ |
|
bindir=$$(cd ${PREFIX}/bin; pwd); \ |
|
(cd work/${DISTNAME}; ${INSTALL_PROGRAM} tigers $${bindir}); \ |
fi |
fi |
@rm -f ./.patch_done |
@touch work/.install_done |
|
|
|
clean: |
|
-${RM} -rf work |
|
|
|
distclean: clean |