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

File: [local] / OpenXM / src / gnuplot-diff / Attic / Makefile (download)

Revision 1.5, Wed Nov 17 07:46:07 1999 UTC (24 years, 6 months ago) by maekawa
Branch: MAIN
Changes since 1.4: +9 -5 lines

o add 'patch' and 'patch-clean' target.

If already applied patch and stop making all target,
please make patch-clean. This target will be flush the applied one.

# $OpenXM: OpenXM/src/gnuplot-diff/Makefile,v 1.5 1999/11/17 07:46:07 maekawa Exp $

GNUPLOT = ../gnuplot
BINDIR = ../../bin

all : patch
	(cd $(GNUPLOT) ; ./configure --with-x ; make )
	/bin/rm -f $(BINDIR)/gnuplot4ox
	mv $(GNUPLOT)/gnuplot $(BINDIR)/gnuplot4ox
	mv $(GNUPLOT)/gnuplot_x11 $(BINDIR)/gnuplot_x11

clean : patch-clean
	(cd $(GNUPLOT) ; make distclean )
	/bin/rm -f $(BINDIR)/gnuplot4ox $(BINDIR)/gnuplot_x11

patch:
	(cd $(GNUPLOT) ; patch < ../gnuplot-diff/plot.c.diff)

patch-clean:
	(cd $(GNUPLOT) ; mv ./plot.c.orig plot.c ; rm -f plot.c.rej)