Annotation of OpenXM/src/gnuplot/Makefile, Revision 1.19
1.19 ! ohara 1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.18 2005/01/18 16:31:17 ohara Exp $
1.1 maekawa 2:
1.10 ohara 3: OpenXM_HOME = ../..
1.12 ohara 4: MASTER_SITE = ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.13 ohara 5: DISTNAME = gnuplot-4.0.0
1.10 ohara 6: DISTFILES = ${DISTNAME}.tar.gz
7: DISTDIR = ${OpenXM_HOME}/../OpenXM_dist
8: WRKSRC = work/${DISTNAME}
1.15 ohara 9: #PATCH_FILES = gnuplot-v4.diff
1.17 ohara 10: PATCH_FILES = gnuplot4_interix.diff
1.13 ohara 11: INSTALL_PROGRAM = install -c -s
1.10 ohara 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}; \
1.1 maekawa 19: fi
1.10 ohara 20: @touch work/.fetch_done
1.2 maekawa 21:
1.10 ohara 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 \
1.16 ohara 30: for i in ${PATCH_FILES} "" ; do if [ -f "$$i" ]; then cat $$i | (cd ${WRKSRC}; patch -p1); fi done;\
1.10 ohara 31: fi
32: @touch work/.patch_done
1.2 maekawa 33:
34: configure: patch
1.11 ohara 35: if [ ! -f work/.configure_done ]; then \
36: prefix=`cd ${OpenXM_HOME}; pwd` ; \
1.19 ! ohara 37: (cd ${WRKSRC} ; ./configure --with-x --prefix="$$prefix" --without-pdf) ; \
1.2 maekawa 38: fi
1.10 ohara 39: @touch work/.configure_done
1.1 maekawa 40:
1.10 ohara 41: build: configure
42: @if [ ! -f work/.build_done ]; then \
1.13 ohara 43: (cd ${WRKSRC}/src; ${MAKE}) ; \
1.1 maekawa 44: fi
1.10 ohara 45: @touch work/.build_done
1.1 maekawa 46:
1.10 ohara 47: install: build
48: @if [ ! -f work/.install_done ]; then \
1.13 ohara 49: prefix=`cd ${OpenXM_HOME}; pwd`; \
50: mkdir -p $${prefix}/libexec/gnuplot/4.0; \
51: (cd ${WRKSRC}/src; \
1.14 takayama 52: ${INSTALL_PROGRAM} gnuplot $${prefix}/bin/gnuplot ; \
1.13 ohara 53: ${INSTALL_PROGRAM} gnuplot_x11 $${prefix}/libexec/gnuplot/4.0) ; \
1.1 maekawa 54: fi
1.10 ohara 55: @touch work/.install_done
56:
57: clean:
58: -rm -rf work
59:
60: distclean: clean
1.14 takayama 61: -rm -f ${OpenXM_HOME}/bin/gnuplot ${OpenXM_HOME}/bin/gnuplot_x11
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>