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