summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-02-12 15:12:00 +0100
committerCamil Staps2016-02-12 15:12:00 +0100
commita33567781d595b908e10bf56978027906f6f7ced (patch)
treef53703f9233409ce22b0fe622e5d8c8391597fe0
parentRemoved spaces in path (diff)
Change directory in makefile
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 ..