summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b4c9c4a..3a9f22c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+BIBLIOGRAPHY := bibliography.bib
+LOG_MARKDOWN := log.md
+LOG_PDF := log.pdf
+
all: log
watch:
@@ -13,15 +17,15 @@ else
done
endif
-log: log.md bibliography.bib
+log: $(LOG_MD) $(BIBLIOGRAPHY)
pandoc \
--standalone \
--from markdown \
--to pdf \
--pdf-engine pdflatex \
--citeproc \
- --output log.pdf \
- log.md
+ --output $(LOG_PDF) \
+ $(LOG_MD)
clean:
- rm log.pdf
+ rm $(LOG_PDF)