[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / gnuplot

Annotation of OpenXM/src/gnuplot/Makefile, Revision 1.16

1.16    ! ohara       1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.15 2004/12/17 07:47:03 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.13      ohara      10: INSTALL_PROGRAM = install -c -s
1.10      ohara      11:
                     12: all: build
                     13:
                     14: fetch:
                     15:        -mkdir work
                     16:        @if [ ! -f work/.fetch_done ]; then \
                     17:                ${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \
1.1       maekawa    18:        fi
1.10      ohara      19:        @touch work/.fetch_done
1.2       maekawa    20:
1.10      ohara      21: extract: fetch
                     22:        @if [ ! -f work/.extract_done ]; then \
                     23:            cat ${DISTDIR}/${DISTFILES} | (cd work ; tar xzvf -) ; \
                     24:        fi
                     25:        @touch work/.extract_done
                     26:
                     27: patch: extract
                     28:        @if [ ! -f work/.patch_done ]; then \
1.16    ! ohara      29:                for i in ${PATCH_FILES} "" ; do if [ -f "$$i" ]; then cat $$i | (cd ${WRKSRC}; patch -p1); fi done;\
1.10      ohara      30:        fi
                     31:        @touch work/.patch_done
1.2       maekawa    32:
                     33: configure: patch
1.11      ohara      34:        if [ ! -f work/.configure_done ]; then \
                     35:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
                     36:                (cd ${WRKSRC} ; ./configure --with-x --prefix="$$prefix" ) ; \
1.2       maekawa    37:        fi
1.10      ohara      38:        @touch work/.configure_done
1.1       maekawa    39:
1.10      ohara      40: build: configure
                     41:        @if [ ! -f work/.build_done ]; then \
1.13      ohara      42:            (cd ${WRKSRC}/src; ${MAKE}) ; \
1.1       maekawa    43:        fi
1.10      ohara      44:        @touch work/.build_done
1.1       maekawa    45:
1.10      ohara      46: install: build
                     47:        @if [ ! -f work/.install_done ]; then \
1.13      ohara      48:                prefix=`cd ${OpenXM_HOME}; pwd`; \
                     49:                mkdir -p $${prefix}/libexec/gnuplot/4.0; \
                     50:                (cd ${WRKSRC}/src; \
1.14      takayama   51:                 ${INSTALL_PROGRAM} gnuplot     $${prefix}/bin/gnuplot ; \
1.13      ohara      52:                 ${INSTALL_PROGRAM} gnuplot_x11 $${prefix}/libexec/gnuplot/4.0) ; \
1.1       maekawa    53:        fi
1.10      ohara      54:        @touch work/.install_done
                     55:
                     56: clean:
                     57:        -rm -rf work
                     58:
                     59: distclean: clean
1.14      takayama   60:        -rm -f ${OpenXM_HOME}/bin/gnuplot ${OpenXM_HOME}/bin/gnuplot_x11

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>