Annotation of OpenXM/src/gnuplot/Makefile, Revision 1.9
1.9 ! takayama 1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.8 2004/02/22 13:58:58 takayama Exp $
1.1 maekawa 2:
3: GNUPLOT = ../../../OpenXM_contrib/gnuplot
4: CURDIR = ../../OpenXM/src/gnuplot
5: BINDIR = ../../bin
6:
1.2 maekawa 7: all: configure
1.6 maekawa 8: @if [ ! -f $(GNUPLOT)/.make_done ]; then \
9: if [ `uname` = "SunOS" ]; then \
1.7 ohara 10: (cd $(GNUPLOT) ; make all LDFLAGS="-lsocket -lnsl" ) ; \
1.6 maekawa 11: else \
12: (cd $(GNUPLOT) ; make all) ; \
13: fi ; \
1.1 maekawa 14: fi
1.6 maekawa 15: @touch $(GNUPLOT)/.make_done
1.1 maekawa 16:
17: install: all
1.6 maekawa 18: if [ `uname` = "OSF1" ]; then \
1.5 noro 19: installbsd -c -s $(GNUPLOT)/gnuplot $(BINDIR)/gnuplot4ox ; \
20: installbsd -c -s $(GNUPLOT)/gnuplot_x11 $(BINDIR)/gnuplot_x11 ; \
21: else \
22: install -c -s $(GNUPLOT)/gnuplot $(BINDIR)/gnuplot4ox ; \
23: install -c -s $(GNUPLOT)/gnuplot_x11 $(BINDIR)/gnuplot_x11; \
24: fi
1.1 maekawa 25:
26: clean: patch-clean
1.6 maekawa 27: @if [ -f $(GNUPLOT)/.make_done ]; then \
1.1 maekawa 28: (cd $(GNUPLOT) ; make distclean) \
29: fi
1.6 maekawa 30: @rm -f $(GNUPLOT)/.make_done $(GNUPLOT)/.configure_done
1.2 maekawa 31:
32: distclean:
1.1 maekawa 33: rm -f $(BINDIR)/gnuplot4ox $(BINDIR)/gnuplot_x11
1.2 maekawa 34:
35: configure: patch
1.6 maekawa 36: @if [ ! -f $(GNUPLOT)/.configure_done ]; then \
1.8 takayama 37: (cd $(GNUPLOT) ; ./configure --with-x) ; \
1.2 maekawa 38: fi
1.6 maekawa 39: @touch $(GNUPLOT)/.configure_done
1.1 maekawa 40:
41: patch:
1.6 maekawa 42: -@if [ ! -f $(GNUPLOT)/.patch_done ]; then \
1.1 maekawa 43: (cd $(GNUPLOT) ; patch < $(CURDIR)/plot.c.diff) \
44: fi
1.6 maekawa 45: @touch $(GNUPLOT)/.patch_done
1.1 maekawa 46:
47: patch-clean:
1.6 maekawa 48: @if [ -f $(GNUPLOT)/.patch_done ]; then \
1.1 maekawa 49: (cd $(GNUPLOT) ; patch -R < $(CURDIR)/plot.c.diff) \
50: fi
1.6 maekawa 51: @rm -f $(GNUPLOT)/.patch_done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>