source: liacs/templates/latex.mk@ 22

Last change on this file since 22 was 22, checked in by Rick van der Zwet, 15 years ago

MultiMediaSystems :-)

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