From a33567781d595b908e10bf56978027906f6f7ced Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 12 Feb 2016 15:12:00 +0100 Subject: Change directory in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97582f6..e13cc58 100644 --- a/Makefile +++ b/Makefile @@ -3,5 +3,5 @@ TARGET=$(subst .tex,.pdf,$(wildcard */*.tex)) all: $(TARGET) %.pdf : %.tex - pdflatex -shell-escape $< && pdflatex -shell-escape $< + cd `dirname $<` && pdflatex -shell-escape `basename $<` && pdflatex -shell-escape `basename $<` && cd .. -- cgit v1.2.3