-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (29 loc) · 829 Bytes
/
makefile
File metadata and controls
37 lines (29 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
MAINDOC = memoria
DOCS = $(wildcard *.tex)
DVIFILE = $(patsubst %,%.dvi,$(MAINDOC))
PSFILE = $(patsubst %,%.ps,$(MAINDOC))
PDFFILE = $(patsubst %,%.pdf,$(MAINDOC))
TEXCODE = $(patsubst code/%.cc, code/%.tex, $(wildcard code/*.cc))
all: $(PDFFILE)
$(DVIFILE): $(TEXCODE) ${DOCS}
$(PDFFILE): $(TEXCODE) ${DOCS}
code/%.tex: code/%.cc
cpp2latex -h -s 0 -t 4 $< > code/$*.tex
#lgrind -i -lc -t 4 $< > code/$*.tex
%.pdf: %.tex
pdflatex --shell-escape $*
makeglossaries $*
bibtex $*
pdflatex --shell-escape $*
pdflatex --shell-escape $*
%.dvi: %.tex
latex $*
bibtex $*
latex $*
latex $*
%.ps: %.dvi
dvips $< -o $@
#%.pdf: %.ps
# ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true $<
clean:
@rm -f *.bbl *.blg *.dvi *~ *.ps *.aux *.log *.pdf *.bak *.toc *.lof *.lot *.out