-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
59 lines (45 loc) · 1.57 KB
/
Makefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
TARGET = TCC_FGA.pdf
BIBTEX = bibtex
LATEX = pdflatex
# LATEX = latex
# DVIPS = dvips
# PS2PDF = ps2pdf
VERSION = 0.1.0
FIXOS_DIR = fixos
FIXOS_SOURCES = informacoes.tex fichaCatalografica.tex \
folhaDeAprovacao.tex pacotes.tex comandos.tex setup.tex \
listasAutomaticas.tex indiceAutomatico.tex
FIXOS_FILES = $(addprefix $(FIXOS_DIR)/, $(FIXOS_SOURCES))
EDITAVEIS_DIR = editaveis
EDITAVEIS_SOURCES = informacoes.tex errata.tex dedicatoria.tex \
agradecimentos.tex epigrafe.tex resumo.tex abstract.tex \
abreviaturas.tex simbolos.tex introducao.tex \
aspectosgerais.tex consideracoes.tex textoepostexto.tex \
elementosdotexto.tex elementosdopostexto.tex \
apendices.tex anexos.tex
EDITAVEIS_FILES = $(addprefix $(EDITAVEIS_DIR)/, $(EDITAVEIS_SOURCES))
MAIN_FILE = tcc.tex
DVI_FILE = $(addsuffix .dvi, $(basename $(MAIN_FILE)))
AUX_FILE = $(addsuffix .aux, $(basename $(MAIN_FILE)))
PS_FILE = $(addsuffix .ps, $(basename $(MAIN_FILE)))
PDF_FILE = $(addsuffix .pdf, $(basename $(MAIN_FILE)))
SOURCES = $(FIXOS_FILES) $(EDITAVEIS_FILES)
.PHONY: all clean dist-clean
all:
@make $(TARGET)
$(TARGET): $(MAIN_FILE) $(SOURCES) bibliografia.bib
$(LATEX) $(MAIN_FILE) $(SOURCES)
$(BIBTEX) $(AUX_FILE)
$(LATEX) $(MAIN_FILE) $(SOURCES)
$(LATEX) $(MAIN_FILE) $(SOURCES)
# $(DVIPS) $(DVI_FILE)
# $(PS2PDF) $(PS_FILE)
@cp $(PDF_FILE) $(TARGET)
clean:
rm -f *~ *.dvi *.ps *.backup *.aux *.log
rm -f *.lof *.lot *.bbl *.blg *.brf *.toc *.idx
rm -f *.pdf
dist: clean
tar vczf tcc-fga-latex-$(VERSION).tar.gz *
dist-clean: clean
rm -f $(PDF_FILE) $(TARGET)