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