Initial release of Maemo 5 port of gnuplot
[gnuplot] / demo / Makefile.am.in
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2 AUTOMAKE_OPTIONS = foreign 1.2h
3
4 CLEANFILES = binary1 binary2 binary3 defaults.ini equipo2.tmp field2xy.tmp \
5 fit.log soundfit.par temp.set fontfile.ps fontfile_latex.ps epslatex-inc.eps \
6 epslatex-inc.pdf epslatex.aux epslatex.dvi epslatex.log epslatex.pdf \
7 epslatex.ps epslatex.tex random.tmp stringvar.tmp
8
9 BINARY_FILES = binary1 binary2 binary3
10
11 DEMO = all.dem
12
13 GNUPLOT = gnuplot
14
15 all: $(BINARY_FILES)
16
17 $(BINARY_FILES): ../src/bf_test
18         @echo Creating binary data files
19         @../src/bf_test
20
21 check-local: check-noninteractive
22
23 check-interactive: $(BINARY_FILES)
24         @if test -z "$(GNUTERM)" ; then \
25           ( bdir=`pwd` ; PATH=$$bdir/../src:$$PATH \
26             GNUPLOT_DRIVER_DIR=$$bdir/../src \
27             GNUPLOT_LIB=$(srcdir) $(GNUPLOT) $(DEMO) ); \
28         else \
29           ( bdir=`pwd` ; PATH=$$bdir/../src:$$PATH \
30             GNUPLOT_DRIVER_DIR=$$bdir/../src \
31             GNUTERM=$(GNUTERM) \
32             GNUPLOT_LIB=$(srcdir) $(GNUPLOT) $(DEMO) ); \
33         fi
34
35 check-noninteractive: $(BINARY_FILES)
36         @if test -z "$(GNUTERM)" ; then \
37           ( bdir=`pwd` ; PATH=$$bdir/../src:$$PATH \
38             GNUPLOT_DRIVER_DIR=$$bdir/../src \
39             GNUPLOT_LIB=$(srcdir) $(GNUPLOT) $(DEMO) </dev/null ); \
40         else \
41           ( bdir=`pwd` ; PATH=$$bdir/../src:$$PATH\
42             GNUPLOT_DRIVER_DIR=$$bdir/../src \
43             GNUTERM=$(GNUTERM) \
44             GNUPLOT_LIB=$(srcdir) $(GNUPLOT) $(DEMO) </dev/null ); \
45         fi
46
47 epslatex:
48         @if test -z "$(GNUTERM)" ; then \
49           ( bdir=`pwd` ; PATH=$$bdir/../src:$$PATH \
50             GNUPLOT_DRIVER_DIR=$$bdir/../src \
51             GNUPLOT_LIB=$(srcdir) $(GNUPLOT) epslatex.dem ); \
52         else \
53           ( bdir=`pwd` ; PATH=$$bdir/../src:$$PATH \
54             GNUPLOT_DRIVER_DIR=$$bdir/../src \
55             GNUTERM=$(GNUTERM) \
56             GNUPLOT_LIB=$(srcdir) $(GNUPLOT) epslatex.dem ); \
57         fi
58         latex epslatex
59         dvips epslatex
60
61 ##m4-files-begin
62 ##m4-files-end
63
64 Makefile.am: Makefile.am.in
65         rm -f $@ $@t
66         sed -n '1,/^##m4-files-begin/p' Makefile.am.in > $@t
67         echo EXTRA_DIST = Makefile.am.in *.bin *.cfg *.cor *.dat *.dem *.edf \
68           *.fnc *.inc nearmap.csv *.pdb *.r3d *.rgb sound.par sound2.par \
69           start.par *.rot html | fmt | \
70           (tr '\012' @; echo) | sed 's/@$$/%/;s/@/ \\@/g' | tr @% '\012 ' \
71           >> $@t
72         sed -n '/^##m4-files-end/,$$p' $< >> $@t
73         chmod a-w $@t
74         mv $@t $@
75