1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2 AUTOMAKE_OPTIONS = foreign 1.2h
5 PLT_FILES = eg1.plt eg2.plt eg3.plt eg4.plt eg5.plt eg6.plt eg7.plt \
9 EXTRA_DIST = Makefile.am.in $(PLT_FILES) \
10 header.tex makefile.dst tutorial.tex eg3.dat
12 CLEANFILES = tutorial.aux tutorial.dvi tutorial.log tutorial.pdf tutorial.ps \
13 tutorial.toc eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex eg7.tex \
14 eg7.eps eg7.pdf test.tex
19 SUFFIXES = .dvi .plt .pdf .tex .ps
24 tutorial: tutorial.dvi
28 # To touch it up after changes:
33 tutorial.ps: tutorial.dvi
37 tutorial.dvi: eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex eg7.tex eg7.eps test.tex \
38 tutorial.tex header.tex
39 @echo Building LaTeX tutorial
40 TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) tutorial
41 TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) tutorial
43 tutorial.pdf: eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex eg7.tex eg7.pdf test.tex \
44 tutorial.tex header.tex
45 @echo "Building LaTeX tutorial (PDF version)"
46 TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) tutorial
47 TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) tutorial
49 RUN_GNUPLOT = if test -x $(top_builddir)/src/gnuplot ; then \
50 GNUPLOT_PS_DIR=$(top_srcdir)/term/PostScript \
51 GNUPLOT_LIB=$(srcdir) \
53 $(top_builddir)/src/gnuplot $< ; \
71 @if test "$(top_srcdir)" != "$(top_builddir)" ; then \
75 Makefile.am: Makefile.am.in
77 sed -n '1,/^##plt-files-begin/p' Makefile.am.in > $@t
78 echo PLT_FILES = *.plt | fmt | (tr '\012' @; echo ) \
79 |sed 's/@$$/%/;s/@/ \\@/g;' | tr @% '\012 ' >> $@t
80 sed -n '/^##plt-files-end/,$$p' $< >> $@t