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

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

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

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