From d3eead2471b3ff4e93581687961f28b0476535f1 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 7 Aug 2020 00:27:10 -0400 Subject: [PATCH] make Makefile more robust and able to handle different documents --- .gitignore | 4 +++- Makefile | 13 ++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6ab4c3c..3e88abe 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,8 @@ # *.eps # *.pdf +/*.pdf + ## Generated if empty string is given at "Please type another file name for output:" .pdf @@ -208,4 +210,4 @@ TSWLatexianTemp* /auto/* # expex forward references with \gathertags -*-tags.tex \ No newline at end of file +*-tags.tex diff --git a/Makefile b/Makefile index 607248b..b83b5b1 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,16 @@ # along with this CV. If not, see . -all: bandali-cv.pdf +all: bandali-%.pdf -bandali-cv.pdf: bandali-cv.tex - latexmk -lualatex bandali-cv +bandali-%.pdf: bandali-%.tex + latexmk -lualatex $< -watch: - latexmk -lualatex -pvc -view=none bandali-cv +watch-%: bandali-%.pdf + latexmk -lualatex -pvc -view=none $(basename $<) clean: + latexmk -c + +clean-all: latexmk -C -- 2.20.1