File: Makefile.am.in

package info (click to toggle)
gnuplot 5.0.5+dfsg1-6+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,800 kB
  • ctags: 8,062
  • sloc: ansic: 78,152; cpp: 6,981; makefile: 2,075; sh: 1,343; lisp: 655; perl: 302; awk: 235; pascal: 194; tcl: 88; python: 46
file content (81 lines) | stat: -rw-r--r-- 1,906 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
## Process this file with automake to produce Makefile.in -*-Makefile-*-
AUTOMAKE_OPTIONS = foreign

##plt-files-begin
##plt-files-end

EXTRA_DIST = Makefile.am.in $(PLT_FILES) \
header.tex makefile.dst tutorial.tex eg3.dat

CLEANFILES = tutorial.aux tutorial.dvi tutorial.log tutorial.pdf tutorial.ps \
tutorial.toc eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex eg7.tex \
eg7.eps eg7.pdf test.tex

DVIPS = dvips
LATEX = @LATEX@

SUFFIXES = .dvi .plt .pdf .tex .ps

# default target
all: @TUTORIAL@

tutorial: tutorial.dvi

notutorial:

# To touch it up after changes:
remake: tutorial.dvi

ps: tutorial.ps

tutorial.ps: tutorial.dvi

pdf: tutorial.pdf

tutorial.dvi: eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex eg7.tex eg7.eps test.tex \
	tutorial.tex header.tex
	@echo Building LaTeX tutorial
	TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) tutorial
	TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) tutorial

tutorial.pdf: eg1.tex eg2.tex eg3.tex eg4.tex eg5.tex eg6.tex eg7.tex eg7.pdf test.tex \
	tutorial.tex header.tex
	@echo "Building LaTeX tutorial (PDF version)"
	TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) tutorial
	TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) tutorial

RUN_GNUPLOT = if test -x $(top_builddir)/src/gnuplot ; then \
	  GNUPLOT_PS_DIR=$(top_srcdir)/term/PostScript \
	  GNUPLOT_LIB=$(srcdir) \
	  GNUTERM=latex \
	  $(top_builddir)/src/gnuplot $< ; \
	else \
	  gnuplot $< ; \
	fi

eg7.eps: eg7.plt
	$(RUN_GNUPLOT)

.dvi.ps:
	$(DVIPS) -o $@ $<

.plt.tex:
	$(RUN_GNUPLOT)

.eps.pdf:
	epstopdf $<

distclean-local:
	@if test "$(top_srcdir)" != "$(top_builddir)" ; then \
	  rm -f eg3.dat; \
	fi

Makefile.am: Makefile.am.in
	rm -f $@ $@t
	sed -n '1,/^##plt-files-begin/p' Makefile.am.in > $@t
	echo PLT_FILES = *.plt | fmt | (tr '\012' @; echo ) \
	  |sed 's/@$$/%/;s/@/ \\@/g;' | tr @% '\012 ' >> $@t
	sed -n '/^##plt-files-end/,$$p' $< >> $@t
	chmod og-w $@t
	mv $@t $@