Last change
on this file since 144 was 25, checked in by Rick van der Zwet, 15 years ago |
Almost final report
|
File size:
934 bytes
|
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
|
---|
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 | help:
|
---|
19 | @echo "Usage Makefile <option>"
|
---|
20 |
|
---|
21 | doc-all: doc-distclean buildpdf
|
---|
22 |
|
---|
23 | view: viewpdf
|
---|
24 |
|
---|
25 | viewdvi: builddvi
|
---|
26 | $(XDVI) $(TARGET)
|
---|
27 |
|
---|
28 | builddvi: $(TARGET).dvi
|
---|
29 |
|
---|
30 | doc-clean:
|
---|
31 | rm -vf *.aux *.log *toc *.out *.bak
|
---|
32 |
|
---|
33 | doc-distclean: doc-clean
|
---|
34 | rm -vf $(TARGET).dvi $(TARGET).pdf $(PROGRAM)
|
---|
35 |
|
---|
36 | buildpdf: $(TARGET).pdf
|
---|
37 |
|
---|
38 | viewpdf: buildpdf
|
---|
39 | $(VIEWPDF) $(TARGET).pdf
|
---|
40 |
|
---|
41 | spell: spell-en
|
---|
42 |
|
---|
43 | spell-nl: $(TARGET).tex
|
---|
44 | $(ASPELL) -l nl -p ~/aspell-n.dic $(ASPELL_ARGS) $<
|
---|
45 |
|
---|
46 | spell-en: $(TARGET).tex
|
---|
47 | $(ASPELL) -l en -p ~/aspell-en.dic $(ASPELL_ARGS) $<
|
---|
48 |
|
---|
49 | .dvi.pdf:
|
---|
50 | $(DVIPDF) $? $@
|
---|
51 |
|
---|
52 | .tex.dvi:
|
---|
53 | $(TEX) $? $@
|
---|
54 | $(TEX) $? $@
|
---|
55 |
|
---|
56 | .gs.png:
|
---|
57 | $(GNUPLOT) $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.