mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-21 05:38:30 +00:00
Rewrite Makefile commands
This commit is contained in:
parent
7312b56929
commit
effa60f205
1 changed files with 19 additions and 3 deletions
22
Makefile
22
Makefile
|
@ -1,6 +1,22 @@
|
|||
.PHONY: examples
|
||||
|
||||
examples: $(foreach x,coverletter cv resume,examples/$x.pdf)
|
||||
CC = xelatex
|
||||
EXAMPLES_DIR = examples
|
||||
RESUME_DIR = examples/resume
|
||||
CV_DIR = examples/cv
|
||||
RESUME_SRCS = $(shell find $(RESUME_DIR) -name '*.tex')
|
||||
CV_SRCS = $(shell find $(CV_DIR) -name '*.tex')
|
||||
|
||||
%.pdf: %.tex
|
||||
xelatex -output-directory=$(dir $@) $<
|
||||
examples: $(foreach x, coverletter cv resume, $x.pdf)
|
||||
|
||||
resume.pdf: $(EXAMPLES_DIR)/resume.tex $(RESUME_SRCS)
|
||||
$(CC) -output-directory=$(EXAMPLES_DIR) $<
|
||||
|
||||
cv.pdf: $(EXAMPLES_DIR)/cv.tex $(CV_SRCS)
|
||||
$(CC) -output-directory=$(EXAMPLES_DIR) $<
|
||||
|
||||
coverletter.pdf: $(EXAMPLES_DIR)/coverletter.tex
|
||||
$(CC) -output-directory=$(EXAMPLES_DIR) $<
|
||||
|
||||
clean:
|
||||
rm -rf $(EXAMPLES_DIR)/*.pdf
|
||||
|
|
Loading…
Reference in a new issue