Annotation of OpenXM/src/gnuplot/Makefile, Revision 1.10
1.10 ! ohara 1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.9 2004/02/22 14:11:02 takayama Exp $
1.1 maekawa 2:
1.10 ! ohara 3: OpenXM_HOME = ../..
! 4: DISTNAME = gnuplot-3.7.3
! 5: DISTFILES = ${DISTNAME}.tar.gz
! 6: DISTDIR = ${OpenXM_HOME}/../OpenXM_dist
! 7: WRKSRC = work/${DISTNAME}
! 8: PATCHES = configure.diff plot.c.diff
! 9:
! 10: all: build
! 11:
! 12: fetch:
! 13: -mkdir work
! 14: @if [ ! -f work/.fetch_done ]; then \
! 15: ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.1 maekawa 16: fi
1.10 ! ohara 17: @touch work/.fetch_done
1.2 maekawa 18:
1.10 ! ohara 19: extract: fetch
! 20: @if [ ! -f work/.extract_done ]; then \
! 21: cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
! 22: fi
! 23: @touch work/.extract_done
! 24:
! 25: patch: extract
! 26: @if [ ! -f work/.patch_done ]; then \
! 27: for i in ${PATCHES}; do cat $$i | (cd ${WRKSRC}; patch -p0); done ; \
! 28: fi
! 29: @touch work/.patch_done
1.2 maekawa 30:
31: configure: patch
1.10 ! ohara 32: @if [ ! -f work/.configure_done ]; then \
! 33: (cd ${WRKSRC} ; ./configure --with-x --prefix=`cd ../..; cd ${OpenXM_HOME}; pwd` ) ; \
1.2 maekawa 34: fi
1.10 ! ohara 35: @touch work/.configure_done
1.1 maekawa 36:
1.10 ! ohara 37: build: configure
! 38: @if [ ! -f work/.build_done ]; then \
! 39: (cd ${WRKSRC} ; ${MAKE} ) ; \
1.1 maekawa 40: fi
1.10 ! ohara 41: @touch work/.build_done
1.1 maekawa 42:
1.10 ! ohara 43: install: build
! 44: @if [ ! -f work/.install_done ]; then \
! 45: (cd ${WRKSRC} ; ${MAKE} install) ; \
1.1 maekawa 46: fi
1.10 ! ohara 47: @touch work/.install_done
! 48:
! 49: clean:
! 50: -rm -rf work
! 51:
! 52: distclean: clean
! 53: -rm -f ${OpenXM_HOME}/bin/gnuplot4ox ${OpenXM_HOME}/bin/gnuplot_x11
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>