From ddd34ffee589e8daa18036a26fef96dc314a1db6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 30 Sep 2016 05:07:52 +0300 Subject: more generic Makefile --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') 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)/ -- cgit v1.2.3