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 |
|
---|
6 | TARGET = report
|
---|
7 | LATEX = latex
|
---|
8 | XDVI = xdvi -geometry +700+0
|
---|
9 | TEX = latex -halt-on-error
|
---|
10 | DVIPDF = dvipdf
|
---|
11 | ASPELL = aspell
|
---|
12 | ASPELL_ARGS = -c --mode=tex -x
|
---|
13 |
|
---|
14 | #XXX: Make me dynamic
|
---|
15 | VIEWPDF = evince
|
---|
16 | .SUFFIXES: .pdf
|
---|
17 |
|
---|
18 | PAGE ?= 1
|
---|
19 |
|
---|
20 | help:
|
---|
21 | @echo "Usage Makefile <option>"
|
---|
22 |
|
---|
23 | doc-all: doc-distclean buildpdf
|
---|
24 |
|
---|
25 | view: viewpdf
|
---|
26 |
|
---|
27 | viewdvi: builddvi
|
---|
28 | $(XDVI) $(TARGET) +$(PAGE)
|
---|
29 |
|
---|
30 | builddvi: $(SOURCE) $(TARGET).dvi
|
---|
31 |
|
---|
32 | doc-clean:
|
---|
33 | rm -vf *.aux *.log *toc *.out *.bak *.m.tex
|
---|
34 |
|
---|
35 | doc-distclean: doc-clean
|
---|
36 | rm -vf $(TARGET).dvi $(TARGET).pdf $(PROGRAM)
|
---|
37 |
|
---|
38 | buildpdf: $(SOURCE) $(TARGET).pdf
|
---|
39 |
|
---|
40 | viewpdf: buildpdf
|
---|
41 | $(VIEWPDF) -p $(PAGE) $(TARGET).pdf
|
---|
42 |
|
---|
43 | spell: spell-en
|
---|
44 |
|
---|
45 | spell-nl: $(TARGET).tex
|
---|
46 | $(ASPELL) -l nl -p ~/aspell-n.dic $(ASPELL_ARGS) $<
|
---|
47 |
|
---|
48 | spell-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.