Makefile 976 Bytes
Newer Older
1
.PHONY: FORCE lenny all clean distclean
2

3 4
TARGET=thesis
.SUFFIXES: .pdf .ps .dvi .tex
5

6 7 8 9
STY = ndisplay.sty liquidHaskell.sty ngrammar.sty
TEX = theorems.tex grammar.tex typing.tex operational.tex definitions.tex prfLmTransD.tex prfLmTransP.tex proofType.tex
BIB = myrefs
SRCFILES = Makefile ${TEX} ${STY} ${BIB}.bib  
10

11 12 13
export TEXINPUTS:=${PWD}/Styles//:${TEXINPUTS}
export BSTINPUTS:=${PWD}/Styles//:${BSTINPUTS}
export SHELL := /bin/bash
14

15 16 17 18
# make pdf by default
all: ${TARGET}.pdf

${TARGET}.pdf: ${TARGET}.tex FORCE
19 20
	latexmk -pdf -f -e '$$pdflatex=q/xelatex %O %S/' $<

21 22 23
count:
	pdftotext $(TARGET).pdf -| tr -d '.' | wc -w

24
clean:
25 26 27 28 29 30
	$(RM) *.log *.aux *.ps *.dvi *.bbl *.blg *.bak *.fdb_latexmk *~

reallyclean: clean
	$(RM) $(TARGET).ps $(TARGET).pdf

distclean: reallyclean
31

32 33
pdfshow: $(TARGET).pdf
	xpdf $(TARGET).pdf
Niki Vazou's avatar
Niki Vazou committed
34

35 36
acroshow: $(TARGET).pdf
	acroread $(TARGET).pdf
Niki Vazou's avatar
Niki Vazou committed
37

38 39
pack: reallyclean
	tar cvfz liquidHaskell_tex.tar.gz ${SRCFILES}
Niki Vazou's avatar
Niki Vazou committed
40

41
PHONY : ps all clean reallyclean distclean