-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·37 lines (29 loc) · 1.15 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
TEXFILE=thesis.tex
PDFREADER=xpdf
PDFFILE:=$(TEXFILE:.tex=.pdf)
BIBFILE:=$(TEXFILE:.tex="")
#export TEXINPUTS=".;..//;"
default:
pdflatex $(TEXFILE)
bibtex $(BIBFILE)
pdflatex $(TEXFILE)
pdflatex $(TEXFILE)
show:
$(PDFREADER) $(PDFFILE) &
clean:
rm -f *.aux *.idl *.idx *.ilg *.ind *.lof *.log *.lot *.toc *.blg *.bbl *.bcf *-blx.bib
git:
git commit -am 'updated thesis'
git push
help:
@echo 'Makefile for LaTeX UCSD dissertation '
@echo ' '
@echo 'Usage: '
@echo ' make generate pdf from tex file '
@echo ' make show open generated pdf '
@echo ' make clean remove temporary files '
@echo ' make git upload source to github '
@echo ' '
@echo 'Set the TEXFILE variable with the name of your "thesis.tex" file.'
@echo ' '
.PHONY: show clean git help