summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-05-01 16:18:37 +0100
committerJoe Carstairs <me@joeac.net>2026-05-01 16:20:38 +0100
commit013f03927ccd3ed40bf91d50e907d02fd177e77c (patch)
tree0bf3a3c581dce01c4c0b151469023e98ee67d8d1
parent6eae467c35c306c432eb9f8d662c068a96511db8 (diff)
uses variables in Makefile
-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)