aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-09-30 05:07:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-09-30 05:07:52 +0300
commitddd34ffee589e8daa18036a26fef96dc314a1db6 (patch)
tree21e21df437d9e419b0957756446947a92ddce80f
parentadd Makefile (diff)
downloadcv-ddd34ffee589e8daa18036a26fef96dc314a1db6.tar.gz
cv-ddd34ffee589e8daa18036a26fef96dc314a1db6.zip
more generic Makefile
-rw-r--r--.gitignore6
-rw-r--r--Makefile17
2 files changed, 13 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
index a3e5ace..9920a98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1 @@
-*.aux
-*.log
-*.out
-*.pdf
-!pdf/*.pdf
+cv/
diff --git a/Makefile b/Makefile
index baa49ba..ef551bf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
-.PHONY: clean clean-all
+MKDIR = mkdir -p
+RMDIR = $(RM) -r
-cv.pdf : cv.tex img/selfie_face.jpg
- pdflatex -interaction=nonstopmode -halt-on-error $<
+name = cv
+
+$(name)/$(name).pdf : $(name).tex $(name)/ img/*
+ pdflatex -interaction=nonstopmode -halt-on-error -output-directory=$(name)/ $<
+
+$(name)/ :
+ $(MKDIR) $@
+
+.PHONY : clean clean-all
clean :
- $(RM) *.aux *.log *.out
clean-all : clean
- $(RM) *.pdf
+ $(RMDIR) $(name)/