blob: ce8e067f04f22d1fcb16886345097f68e3eae864 (
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
|
PDFLATEX=pdflatex -shell-escape
all: pgfplots.pdf pgfplotstable.pdf TeX-programming-notes.pdf pgfplotstodo.pdf
@echo "$^ have been compiled successfully. I did NOT check for references, so you may need to rerun make several times."
notes: TeX-programming-notes.pdf
todo: pgfplotstodo.pdf
pgfplots: pgfplots.pdf
pgfplotstable: pgfplotstable.pdf
# was:
# export TEXMFCNF=.:
# but it seems as if that is ignored for some reason
TEXMFCNF_FOR_MEMLIMITS=export TEXMFCNF=~/texmf/mytexcnf:
include pgfplots.makefile
%.pdf: FORCE
mkdir -p gnuplot
@$(TEXMFCNF_FOR_MEMLIMITS) && $(PDFLATEX) $(@:.pdf=.tex)
@bibtex $(@:.pdf=) || exit 0
@makeindex $(@:.pdf=) || exit 0
@echo ""
@echo "$@ compiled successfully. You may need to re-run make several times to get all cross-references right."
html: FORCE
mkdir -p html/figures/generated
mkdir -p html/gnuplot
# FIXME: this inclusion pattern might include aux files of the pdf version!
@cd html && \
export TEXINPUTS=../:$$TEXINPUTS; \
$(PDFLATEX) '\def\pgfplotsmanualhtlatexmode{1} \input pgfplots.tex'
@cd html && \
$(TEXMFCNF_FOR_MEMLIMITS) && \
export TEXINPUTS=../:$$TEXINPUTS; \
make -k -f pgfplots.makefile
@cd html && \
export TEXINPUTS=../:$$TEXINPUTS; \
htlatex pgfplots.tex
pgfplots.pdf: $(ALL_FIGURES)
pgfplots.makefile:
@$(TEXMFCNF_FOR_MEMLIMITS) && $(PDFLATEX) pgfplots
clean:
rm -f *.aux *.ind *.idx *.toc *.out *.log *.ilg *.dvi pgfplots.makefile pgfplots.pdf pgfplotstable.pdf *.djs *.bbl *.blg figures/expensiveexample*
FORCE:
|