Annotation of OpenXM/src/gc/Makefile, Revision 1.20
1.20 ! ohara 1: # $OpenXM: OpenXM/src/gc/Makefile,v 1.19 2012/02/18 05:17:03 takayama Exp $
1.1 takayama 2: OpenXM_HOME=../..
1.7 takayama 3: PREFIX=${OpenXM_HOME}
4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
1.8 ohara 5: RM = /bin/rm
6: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.14 takayama 7: # Original. http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
1.19 takayama 8: DISTNAME=gc-7.2alpha6
1.12 ohara 9: DISTFILES=${DISTNAME}.tar.gz
10: WRKSRC=work/${DISTNAME}
1.20 ! ohara 11: PATCHFILES = ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/gc-7.diff
! 12: #PATCHFILES =
1.7 takayama 13:
1.9 ohara 14: all : build
1.7 takayama 15:
16: fetch:
1.9 ohara 17: -mkdir work
18: @if [ ! -f work/.fetch_done ]; then \
1.8 ohara 19: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.9 ohara 20: fi
21: @touch work/.fetch_done
1.3 takayama 22:
1.8 ohara 23: extract: fetch
1.9 ohara 24: @if [ ! -f work/.extract_done ]; then \
1.12 ohara 25: cat ${DISTDIR}/${DISTFILES} | (cd work; tar xzvf -) ; \
1.18 ohara 26: chmod +x ${WRKSRC}/install-sh ; \
1.9 ohara 27: fi
28: @touch work/.extract_done
1.8 ohara 29:
30: patch: extract
1.9 ohara 31: @if [ ! -f work/.patch_done ]; then \
1.15 ohara 32: for i in ${PATCHFILES} ; do \
1.17 ohara 33: cat $$i | (cd ${WRKSRC}; patch -p1) ; \
1.15 ohara 34: done ; \
1.9 ohara 35: fi
36: @touch work/.patch_done
37:
38: configure : patch
39: @if [ ! -f work/.configure_done ]; then \
1.10 ohara 40: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.12 ohara 41: (cd ${WRKSRC}; ./configure --disable-threads --prefix="$$prefix" ) ; \
1.8 ohara 42: fi
1.9 ohara 43: @touch work/.configure_done
1.1 takayama 44:
1.9 ohara 45: build : configure
46: @if [ ! -f work/.build_done ]; then \
1.12 ohara 47: (cd ${WRKSRC}; ${MAKE}) ; \
1.1 takayama 48: fi
1.9 ohara 49: @touch work/.build_done
1.6 ohara 50:
1.8 ohara 51: install: build
1.9 ohara 52: @if [ ! -f work/.install_done ]; then \
1.12 ohara 53: (cd ${WRKSRC}; ${MAKE} install) ; \
1.6 ohara 54: fi
1.9 ohara 55: @touch work/.install_done
1.6 ohara 56:
1.7 takayama 57: clean:
1.8 ohara 58: -$(RM) -rf work
59:
60: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>