Annotation of OpenXM/src/pcc/Makefile, Revision 1.1
1.1 ! ohara 1: # $OpenXM$
! 2: OpenXM_HOME=../..
! 3: PREFIX=${OpenXM_HOME}
! 4: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
! 5: RM = /bin/rm
! 6: MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
! 7: DISTNAME=pcc-101228
! 8: DISTFILES=${DISTNAME}.tgz
! 9: WRKSRC=work/${DISTNAME}
! 10: BUILDDIR=${WRKSRC}/cc/cpp
! 11: PATCHFILES = pcc.diff
! 12:
! 13: all : build
! 14:
! 15: fetch:
! 16: -mkdir work
! 17: @if [ ! -f work/.fetch_done ]; then \
! 18: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
! 19: fi
! 20: @touch work/.fetch_done
! 21:
! 22: extract: fetch
! 23: @if [ ! -f work/.extract_done ]; then \
! 24: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
! 25: fi
! 26: @touch work/.extract_done
! 27:
! 28: patch: extract
! 29: @if [ ! -f work/.patch_done ]; then \
! 30: for i in ${PATCHFILES} "" ; do \
! 31: if [ -f "$$i" ]; then \
! 32: cat $$i | (cd ${WRKSRC}; patch -p0) ; \
! 33: fi ; \
! 34: done ; \
! 35: fi
! 36: @touch work/.patch_done
! 37:
! 38: configure: patch
! 39: @if [ ! -f work/.configure_done ]; then \
! 40: prefix=`cd ${OpenXM_HOME}; pwd` ; \
! 41: (cd ${WRKSRC} ; CC=${CC} ./configure --prefix="$$prefix" --libexecdir="$$prefix"/bin ) ; \
! 42: fi
! 43: @touch work/.configure_done
! 44:
! 45: build : configure
! 46: @if [ ! -f work/.build_done ]; then \
! 47: (cd ${BUILDDIR} ; ${MAKE} CC=${CC}) ; \
! 48: fi
! 49: @touch work/.build_done
! 50:
! 51: install: build
! 52: -mkdir ${PREFIX}/bin ${PREFIX}/lib
! 53: @if [ ! -f work/.install_done ]; then \
! 54: (cd ${BUILDDIR} ; ${MAKE} install) ; \
! 55: fi
! 56: @touch work/.install_done
! 57:
! 58: clean:
! 59: -${RM} -rf work
! 60:
! 61: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>