mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2026-05-09 16:24:44 +08:00
- Enhanced clean target to remove *.pdf, *.xdv, *.fdb_latexmk, *.fls files - Ensures comprehensive cleanup of all LaTeX build artifacts
22 lines
656 B
Makefile
22 lines
656 B
Makefile
.PHONY: examples
|
|
|
|
CC = latexmk -xelatex
|
|
EXAMPLES_DIR = src
|
|
RESUME_DIR = src/resume
|
|
CV_DIR = src/cv
|
|
RESUME_SRCS = $(shell find $(RESUME_DIR) -name '*.tex')
|
|
CV_SRCS = $(shell find $(CV_DIR) -name '*.tex')
|
|
|
|
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 $(EXAMPLES_DIR)/*.xdv $(EXAMPLES_DIR)/*.fdb_latexmk $(EXAMPLES_DIR)/*.fls *.fls
|