Annotation of OpenXM/src/gnuplot/Makefile, Revision 1.8
1.8 ! takayama 1: # $OpenXM: OpenXM/src/gnuplot/Makefile,v 1.7 2000/02/07 11:11:15 ohara 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) ; \
! 38: (cd $(GNUPLOT) ; make distclean) ; \
! 39: (cd $(GNUPLOT) ; ./configure --with-x) ; \
1.2 maekawa 40: fi
1.6 maekawa 41: @touch $(GNUPLOT)/.configure_done
1.1 maekawa 42:
43: patch:
1.6 maekawa 44: -@if [ ! -f $(GNUPLOT)/.patch_done ]; then \
1.1 maekawa 45: (cd $(GNUPLOT) ; patch < $(CURDIR)/plot.c.diff) \
46: fi
1.6 maekawa 47: @touch $(GNUPLOT)/.patch_done
1.1 maekawa 48:
49: patch-clean:
1.6 maekawa 50: @if [ -f $(GNUPLOT)/.patch_done ]; then \
1.1 maekawa 51: (cd $(GNUPLOT) ; patch -R < $(CURDIR)/plot.c.diff) \
52: fi
1.6 maekawa 53: @rm -f $(GNUPLOT)/.patch_done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>