-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 898 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 898 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
38
39
#
# Makefile to install techcv and compile the CV example
#
PACKAGENAME := techcv
TEXMFHOME := $(shell kpsewhich -var-value=TEXMFHOME)
PREFIX := ${TEXMFHOME}/tex/latex/${PACKAGENAME}
CV := CV
LATEXMK := $(shell which latexmk)
COMPILER=pdflatex
BIBCOMPILER=biber
all: install pdf clean
install: techcv.cls
install -d ${PREFIX}
install -m 644 $< ${PREFIX}
pdf: ${CV}.tex
ifdef LATEXMK
${LATEXMK} $<
else
${COMPILER} -interaction=nonstopmode -file-line-error --shell-escape -jobname=CV $<
${BIBCOMPILER} ${CV}
${COMPILER} -interaction=nonstopmode -file-line-error --shell-escape -jobname=CV $<
${COMPILER} -interaction=nonstopmode -file-line-error --shell-escape -jobname=CV $<
endif
clean:
ifdef LATEXMK
${LATEXMK} -c
rm -f *.bbl *.run.xml
else
rm -f *.aux *.log *.bbl *.blg *.toc *.lof *.lot *.out *.glo *.ist *.acr *.alg *.glg *.gls *.acn *.nav *.snm *.run.xml *.bcf
endif