aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-04-15 16:51:57 +0800
committerAaron LI <aly@aaronly.me>2018-04-15 16:51:57 +0800
commitd7878f395c01d70993a81d742564ca6bdfeb5dec (patch)
tree102110f355a0f4bd2368521e39a11152b9caff52
parentc14f15271c64641d95fa4a5937a796ffac704604 (diff)
downloadresume-d7878f395c01d70993a81d742564ca6bdfeb5dec.tar.bz2
Add Makefile to help build PDFs
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..93b914e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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 $*=$($*)