source: liacs/SCA2010/BDD/latex.mk@ 135

Last change on this file since 135 was 134, checked in by Rick van der Zwet, 14 years ago

Left of the screen by default

File size: 1.1 KB
Line 
1# Rick van der Zwet <rick@wzoeterwoude.net>
2# Licence: BSD
3# Descrip: LaTex file parser
4# $Id: latex.mk 571 2008-04-20 17:31:04Z rick $
5
6TARGET = report
7LATEX = latex
8XDVI = xdvi -geometry +700+0
9TEX = latex -halt-on-error
10DVIPDF = dvipdf
11ASPELL = aspell
12ASPELL_ARGS = -c --mode=tex -x
13
14#XXX: Make me dynamic
15VIEWPDF = evince
16.SUFFIXES: .pdf
17
18PAGE ?= 1
19
20help:
21 @echo "Usage Makefile <option>"
22
23doc-all: doc-distclean buildpdf
24
25view: viewpdf
26
27viewdvi: builddvi
28 $(XDVI) $(TARGET) +$(PAGE)
29
30builddvi: $(SOURCE) $(TARGET).dvi
31
32doc-clean:
33 rm -vf *.aux *.log *toc *.out *.bak *.m.tex
34
35doc-distclean: doc-clean
36 rm -vf $(TARGET).dvi $(TARGET).pdf $(PROGRAM)
37
38buildpdf: $(SOURCE) $(TARGET).pdf
39
40viewpdf: buildpdf
41 $(VIEWPDF) -p $(PAGE) $(TARGET).pdf
42
43spell: spell-en
44
45spell-nl: $(TARGET).tex
46 $(ASPELL) -l nl -p ~/aspell-n.dic $(ASPELL_ARGS) $<
47
48spell-en: $(TARGET).tex
49 $(ASPELL) -l en -p ~/aspell-en.dic $(ASPELL_ARGS) $<
50
51.dvi.pdf:
52 $(DVIPDF) $? $@
53
54.tex.dvi:
55 $(TEX) $? $@
56 $(TEX) $? $@
57
58.gs.png:
59 $(GNUPLOT) $?
60
61%.m.tex: %.m
62 highlight --include-style --linenumbers --no-doc \
63 --latex --input $< --output $@
Note: See TracBrowser for help on using the repository browser.