From 4470935f0bfe9bd08e39b76f9b7faf9d595a9e65 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 15 Oct 2018 12:55:35 +0800 Subject: Makefile: Update to concatenate zh and en resumes --- Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.2