Files

33 lines
922 B
Makefile
Raw Permalink Normal View History

.PHONY: examples
2016-11-23 21:40:02 +09:00
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')
2016-11-23 21:40:02 +09:00
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) $<
2019-09-08 11:13:08 +08:00
watch:
2019-09-11 15:43:11 +08:00
make resume.pdf ;\
2019-09-08 11:13:08 +08:00
inotifywait -m -e modify ./examples/resume/ ./examples/resume.tex ./awesome-cv.cls | \
while read; do \
2019-09-11 15:43:11 +08:00
make resume.pdf ;\
2019-09-08 11:13:08 +08:00
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
2016-11-23 21:40:02 +09:00
clean:
rm -rf $(EXAMPLES_DIR)/*.pdf