Add auto update to Makefile

This commit is contained in:
2019-09-08 11:13:08 +08:00
parent 45a1aa5f9a
commit 99def57f4b
+9
View File
@@ -18,5 +18,14 @@ cv.pdf: $(EXAMPLES_DIR)/cv.tex $(CV_SRCS)
coverletter.pdf: $(EXAMPLES_DIR)/coverletter.tex
$(CC) -output-directory=$(EXAMPLES_DIR) $<
watch:
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