blob: 9b1f8691fc169018e4bf7be6e653011559db5dc2 (
plain)
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
|
# -*- make -*-
CLEAN_TARGETS += clean_gnuplot_ltx_eps_targets clean_gnuplot_ltx_tex_temporary
REAL_CLEAN_TARGETS += real_clean_gnuplot_ltx_eps_targets
gnuplot_ltx_sources = $(wildcard *.lgp)
gnuplot_ltx_sources_bases = $(gnuplot_ltx_sources:%.lgp=%)
gnuplot_ltx_eps_targets = $(gnuplot_ltx_sources:%.lgp=%.eps)
gnuplot_ltx_tex_targets = $(gnuplot_ltx_sources:%.lgp=%.tex)
gnuplot_ltx_pdf_targets = $(gnuplot_ltx_eps_targets:%.eps=$(pics_destdir)/%.pdf)
copy_gnuplot_ltx_pdf_targets: dest_dir_ltx_gnuplot $(gnuplot_ltx_pdf_targets)
$(gnuplot_ltx_tex_targets): %.tex : %.lgp
echo "set output '$@'" \
| cat - \
$(GNUPLOT_TEMPLATES_DIR)/terminal_epslatex_settings.gp_tmplt \
$(GNUPLOT_TEMPLATES_DIR)/lines_specifications.gp_tmplt \
$< \
| gnuplot
rm -f fit.log
$(gnuplot_ltx_eps_targets): %.eps : %.tex
latex $<
dvips -o - $(basename $<).dvi \
> $@
$(gnuplot_ltx_pdf_targets): $(pics_destdir)/%.pdf : %.eps
epstopdf --autorotate=All --outfile=$@ $<
clean_gnuplot_ltx_tex_temporary:
ifneq ($(strip $(gnuplot_ltx_sources_bases)),)
rm -f $(gnuplot_ltx_sources_bases:%=%.tex)
rm -f $(gnuplot_ltx_sources_bases:%=%.dvi)
rm -f $(gnuplot_ltx_sources_bases:%=%.aux)
rm -f $(gnuplot_ltx_sources_bases:%=%.log)
rm -f $(gnuplot_ltx_sources_bases:%=%-inc.eps)
endif
clean_gnuplot_ltx_eps_targets:
rm -f fit.log
ifneq ($(strip $(gnuplot_ltx_eps_targets)),)
rm -f $(gnuplot_ltx_eps_targets)
endif
real_clean_gnuplot_ltx_eps_targets: clean_gnuplot_ltx_eps_targets
ifneq ($(strip $(gnuplot_ltx_pdf_targets)),)
rm -f $(gnuplot_ltx_pdf_targets)
endif
dest_dir_ltx_gnuplot:
$(INSTALL) -d -m 0755 $(pics_destdir)
.INTERMEDIATE: $(gnuplot_ltx_eps_targets) $(gnuplot_ltx_tex_targets)
|