fix makefile to not attempt to build deleted targets

This commit is contained in:
Grigory Starinkin 2018-01-04 08:32:08 +00:00
parent b415cb5949
commit 34038d987a
No known key found for this signature in database
GPG key ID: 6A32D1F8AB4C166A

View file

@ -2,21 +2,13 @@
CC = 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')
docs: $(foreach x, coverletter cv resume, $x.pdf)
resume.pdf: $(SRC_DIR)/resume.tex $(RESUME_SRCS)
$(CC) -output-directory=$(SRC_DIR) $<
docs: cv.pdf
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