source: liacs/SCA2010/nQueens/latex.mk@ 321

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

Corrected versions (lots of typo's and sentences not clear).

Thanks to Walter Kosters for the corrections!.

File size: 1.3 KB
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
[140]8XDVI = xdvi -geometry +700+0
[2]9TEX = latex -halt-on-error
10DVIPDF = dvipdf
11ASPELL = aspell
[68]12ASPELL_ARGS = -c --mode=tex -x
[22]13
14#XXX: Make me dynamic
15VIEWPDF = evince
[140]16VIEWPS = gv -geometry +700+0
17.SUFFIXES: .pdf .ps
[2]18
[140]19PAGE ?= 1
20
[2]21help:
22 @echo "Usage Makefile <option>"
23
24doc-all: doc-distclean buildpdf
25
26view: viewpdf
27
[140]28viewps: buildps
29 $(VIEWPS) -page=$(PAGE) $(TARGET).ps
30
31buildps: $(SOURCE) $(TARGET).dvi
32 dvips $(TARGET).dvi
33
[2]34viewdvi: builddvi
[140]35 $(XDVI) $(TARGET) +$(PAGE)
[2]36
[68]37builddvi: $(SOURCE) $(TARGET).dvi
[2]38
39doc-clean:
[68]40 rm -vf *.aux *.log *toc *.out *.bak *.m.tex
[2]41
42doc-distclean: doc-clean
43 rm -vf $(TARGET).dvi $(TARGET).pdf $(PROGRAM)
44
[68]45buildpdf: $(SOURCE) $(TARGET).pdf
[2]46
47viewpdf: buildpdf
[140]48 $(VIEWPDF) -p $(PAGE) $(TARGET).pdf
[2]49
50spell: spell-en
51
52spell-nl: $(TARGET).tex
53 $(ASPELL) -l nl -p ~/aspell-n.dic $(ASPELL_ARGS) $<
54
55spell-en: $(TARGET).tex
56 $(ASPELL) -l en -p ~/aspell-en.dic $(ASPELL_ARGS) $<
57
[142]58#.dvi.pdf:
59# $(DVIPDF) $? $@
[2]60
[142]61.tex.pdf:
62 pdflatex -halt-on-error $?
[179]63 pdflatex -halt-on-error $?
[142]64
[2]65.tex.dvi:
66 $(TEX) $? $@
67 $(TEX) $? $@
68
69.gs.png:
70 $(GNUPLOT) $?
[68]71
72%.m.tex: %.m
73 highlight --include-style --linenumbers --no-doc \
74 --latex --input $< --output $@
Note: See TracBrowser for help on using the repository browser.