aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 93b914edf3f5bee03136ef8305c6574187cc92a6 (plain)
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
#
# Makefile for alyresume
#
# Weitian LI
# 2018-04-12
#

DEPS:= resume.cls fontawesome.sty
SRCS:= resume-zh.tex resume-en.tex
PDFS:= $(SRCS:%.tex=%.pdf)

all: $(PDFS)

resume-zh.pdf: resume-zh.tex $(DEPS)
	latexmk -xelatex $<

resume-en.pdf: resume-en.tex $(DEPS)
	latexmk -xelatex $<

clean:
	for f in $(SRCS); do \
		latexmk -c $$f; \
	done
	touch $(SRCS)

cleanall:
	for f in $(SRCS); do \
		latexmk -C $$f; \
	done

.PHONY: clean cleanall


# One liner to get the value of any makefile variable
# Credit: http://blog.jgc.org/2015/04/the-one-line-you-should-add-to-every.html
print-%: ; @echo $*=$($*)