summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1266971..c8978ef 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,12 @@ $(NAMES): $(%:.pdf=.tex)
# Rule that builds the tex file in a temp directory and copies it
%.pdf: %.tex
- $(eval TMP := $(shell mktemp -d --suffix=$(TEMPSUFFIX)))
- @cp -r * $(TMP)/
- cd $(TMP)/; \
+ $(eval TEMP := $(shell mktemp -d --suffix=$(TEMPSUFFIX)))
+ @cp -r * $(TEMP)/
+ cd $(TEMP)/; \
$(TEX2PDF) $(TEXFLAGS) $<;
- @cp $(TMP)/$@ $@
- @$(RM) -r $(TMP)
+ @cp $(TEMP)/$@ $@
+ @$(RM) -r $(TEMP)
# Rule that cleans all previous content
clean: