33 lines
922 B
Makefile
33 lines
922 B
Makefile
.PHONY: examples
|
|
|
|
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')
|
|
|
|
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) $<
|
|
|
|
watch:
|
|
make resume.pdf ;\
|
|
inotifywait -m -e modify ./examples/resume/ ./examples/resume.tex ./awesome-cv.cls | \
|
|
while read; do \
|
|
make resume.pdf ;\
|
|
done
|
|
|
|
#inotifywait --event MODIFY -q -r *.h tests @*.o;
|
|
#inotifywait -m -e modify ./examples/resume/ ./examples/resume.tex ./awesome-cv.cls | while read f; do ; make resume.pdf ; done
|
|
|
|
clean:
|
|
rm -rf $(EXAMPLES_DIR)/*.pdf
|