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

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

1.11    ! ohara       1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.10 2004/03/30 10:27:30 ohara 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.11    ! ohara      32:        if [ ! -f work/.configure_done ]; then \
        !            33:                prefix=`cd ${OpenXM_HOME}; pwd` ; \
        !            34:                (cd ${WRKSRC} ; ./configure --with-x --prefix="$$prefix" ) ; \
1.2       maekawa    35:        fi
1.10      ohara      36:        @touch work/.configure_done
1.1       maekawa    37:
1.10      ohara      38: build: configure
                     39:        @if [ ! -f work/.build_done ]; then \
                     40:            (cd ${WRKSRC} ; ${MAKE} ) ; \
1.1       maekawa    41:        fi
1.10      ohara      42:        @touch work/.build_done
1.1       maekawa    43:
1.10      ohara      44: install: build
                     45:        @if [ ! -f work/.install_done ]; then \
                     46:                (cd ${WRKSRC} ; ${MAKE} install) ; \
1.1       maekawa    47:        fi
1.10      ohara      48:        @touch work/.install_done
                     49:
                     50: clean:
                     51:        -rm -rf work
                     52:
                     53: distclean: clean
                     54:        -rm -f ${OpenXM_HOME}/bin/gnuplot4ox ${OpenXM_HOME}/bin/gnuplot_x11

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