aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-15 12:55:35 +0800
committerAaron LI <aly@aaronly.me>2018-10-15 12:55:35 +0800
commit4470935f0bfe9bd08e39b76f9b7faf9d595a9e65 (patch)
tree080a054e64322e2106b05062ac986394e2c345bf
parentd0d783a8ec975e2f0f787937dd3f1c5a9157c2cf (diff)
downloadresume-4470935f0bfe9bd08e39b76f9b7faf9d595a9e65.tar.bz2
Makefile: Update to concatenate zh and en resumes
-rw-r--r--Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index aec18b4..4ef4077 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,7 @@
-#
-# Makefile for alyresume
-#
-# Weitian LI
-# 2018-04-12
-#
-
DEPS:= resume.cls fontawesome5/fontawesome5.sty
SRCS:= resume-zh.tex resume-en.tex
PDFS:= $(SRCS:%.tex=%.pdf)
+PDFCAT:= resume-zh+en.pdf
DATE= $(shell date +%Y%m%d)
DISTDIR= resume.$(DATE)
@@ -15,7 +9,10 @@ DISTDIR= resume.$(DATE)
# Environment variables
TEXINPUTS:= .:fontawesome5:$(TEXINPUTS)
-all: $(PDFS)
+all: $(PDFCAT)
+
+$(PDFCAT): $(PDFS)
+ pdfjoin -o $@ $(PDFS)
resume-zh.pdf: resume-zh.tex $(DEPS)
env TEXINPUTS=$(TEXINPUTS) latexmk -xelatex $<
@@ -40,7 +37,7 @@ cleanall:
latexmk -C $$f; \
done
-.PHONY: dist clean cleanall
+.PHONY: all dist clean cleanall
# One liner to get the value of any makefile variable