summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..be61a52
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+TARGETS=studies/exams.html\
+ studies/subjects/computer-science.html
+TARGETS_PDF=$(TARGETS:%html=%pdf)
+
+default: $(TARGETS)
+pdf: $(TARGETS_PDF)
+
+%.html: %.md
+ pandoc "$^" -o "$@"\
+ -s\
+ --css="https://mohit.uk/document.css"\
+ -B "navbar.html"
+%.pdf: %.md
+ pandoc "$^" -o "$@"\
+ --pdf-engine=pdfroff
+clean:
+ rm -rf $(TARGETS)