Awesome-CV/Makefile
Mahdi Hoseini b68e9df67c feat(makefile): add build target for generating resume PDF
- Introduced a new build target to create a build directory
- Cleans up the build directory before copying the resume PDF
2025-09-01 10:18:42 -07:00

30 lines
807 B
Makefile

.PHONY: all build clean clean-logs
CC = latexmk -xelatex
SRC_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')
all: $(foreach x, coverletter cv resume, $x.pdf)
resume.pdf: $(SRC_DIR)/resume.tex $(RESUME_SRCS)
$(CC) -output-directory=$(SRC_DIR) $<
cv.pdf: $(SRC_DIR)/cv.tex $(CV_SRCS)
$(CC) -output-directory=$(SRC_DIR) $<
coverletter.pdf: $(SRC_DIR)/coverletter.tex
$(CC) -output-directory=$(SRC_DIR) $<
clean:
rm -rf $(SRC_DIR)/*.pdf $(SRC_DIR)/*.xdv $(SRC_DIR)/*.fdb_latexmk $(SRC_DIR)/*.fls $(SRC_DIR)/*.synctex.gz *.fls $(SRC_DIR)/*.aux
clean-logs:
rm -rf $(SRC_DIR)/*.log
build:
mkdir -p build
rm -rf build/*
cp src/resume.pdf "build/Mahdi Hoseini - Senior front-end developer.pdf"