Annotation of OpenXM/src/gc/Makefile, Revision 1.17
1.17 ! ohara 1: # $OpenXM: OpenXM/src/gc/Makefile,v 1.16 2006/04/29 12:56:07 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.17 ! ohara 8: DISTNAME=gc6.8
1.12 ohara 9: DISTFILES=${DISTNAME}.tar.gz
10: WRKSRC=work/${DISTNAME}
1.17 ! ohara 11: PATCHFILES = ${OpenXM_HOME}/../OpenXM_contrib2/asir2000/gc6.diff
1.7 takayama 12:
1.9 ohara 13: all : build
1.7 takayama 14:
15: fetch:
1.9 ohara 16: -mkdir work
17: @if [ ! -f work/.fetch_done ]; then \
1.8 ohara 18: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.9 ohara 19: fi
20: @touch work/.fetch_done
1.3 takayama 21:
1.8 ohara 22: extract: fetch
1.9 ohara 23: @if [ ! -f work/.extract_done ]; then \
1.12 ohara 24: cat ${DISTDIR}/${DISTFILES} | (cd work; tar xzvf -) ; \
1.9 ohara 25: fi
26: @touch work/.extract_done
1.8 ohara 27:
28: patch: extract
1.9 ohara 29: @if [ ! -f work/.patch_done ]; then \
1.15 ohara 30: for i in ${PATCHFILES} ; do \
1.17 ! ohara 31: cat $$i | (cd ${WRKSRC}; patch -p1) ; \
1.15 ohara 32: done ; \
1.9 ohara 33: fi
34: @touch work/.patch_done
35:
36: configure : patch
37: @if [ ! -f work/.configure_done ]; then \
1.10 ohara 38: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.12 ohara 39: (cd ${WRKSRC}; ./configure --disable-threads --prefix="$$prefix" ) ; \
1.8 ohara 40: fi
1.9 ohara 41: @touch work/.configure_done
1.1 takayama 42:
1.9 ohara 43: build : configure
44: @if [ ! -f work/.build_done ]; then \
1.12 ohara 45: (cd ${WRKSRC}; ${MAKE}) ; \
1.1 takayama 46: fi
1.9 ohara 47: @touch work/.build_done
1.6 ohara 48:
1.8 ohara 49: install: build
1.9 ohara 50: @if [ ! -f work/.install_done ]; then \
1.12 ohara 51: (cd ${WRKSRC}; ${MAKE} install) ; \
1.6 ohara 52: fi
1.9 ohara 53: @touch work/.install_done
1.6 ohara 54:
1.7 takayama 55: clean:
1.8 ohara 56: -$(RM) -rf work
57:
58: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>