Annotation of OpenXM/src/tigers/Makefile, Revision 1.4
1.4 ! ohara 1: # $OpenXM: OpenXM/src/tigers/Makefile,v 1.3 2000/01/31 05:52:07 noro Exp $
! 2: OpenXM_HOME=../..
! 3: PREFIX=${OpenXM_HOME}
! 4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
! 5: RM = /bin/rm
! 6: RANLIB=ranlib
! 7: INSTALL_PROGRAM=install -c -s
! 8: DISTNAME=TiGERS_0.9
! 9: PATCH_FILE=tigers.patch
! 10: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
! 11: DIST_SUFFIX=.taz
! 12: DISTFILES=${DISTNAME}${DIST_SUFFIX}
! 13:
! 14: all: build
! 15:
! 16: fetch:
! 17: -mkdir work
! 18: @if [ ! -f work/.fetch_done ]; then \
! 19: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
! 20: fi
! 21: @touch work/.fetch_done
! 22:
! 23: extract: fetch
! 24: @if [ ! -f work/.extract_done ]; then \
! 25: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
! 26: fi
! 27: @touch work/.extract_done
! 28:
! 29: patch: extract
! 30: @if [ ! -f work/.patch_done ]; then \
! 31: if [ -f "${PATCH_FILE}" ]; then \
! 32: cat ${PATCH_FILE} | (cd work/${DISTNAME} ; patch -p1 ) ; \
! 33: fi \
! 34: fi
! 35: @touch work/.patch_done
! 36:
! 37: build: patch
! 38: @if [ ! -f work/.build_done ]; then \
! 39: (cd work/${DISTNAME}; ${MAKE} all) ; \
1.1 maekawa 40: fi
1.4 ! ohara 41: @touch work/.build_done
1.1 maekawa 42:
1.4 ! ohara 43: install: build
! 44: -mkdir ${PREFIX}/bin
! 45: @if [ ! -f work/.install_done ]; then \
! 46: bindir=$$(cd ${PREFIX}/bin; pwd); \
! 47: (cd work/${DISTNAME}; ${INSTALL_PROGRAM} tigers $${bindir}); \
1.3 noro 48: fi
1.4 ! ohara 49: @touch work/.install_done
1.1 maekawa 50:
1.4 ! ohara 51: clean:
! 52: -${RM} -rf work
1.1 maekawa 53:
1.4 ! ohara 54: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>