blob: 852a43db7867c2e81f0e78fc7d3dd337b91dcec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
TARGETS=index.html\
authors.html\
studies/exams.html\
studies/subjects/computer-science.html\
studies/subjects/economics.html\
studies/subjects/philosophy.html\
social-life/pubs.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"\
-A "footer.html"
%.pdf: %.md
pandoc "$^" -o "$@"\
--pdf-engine=pdfroff
wc:
find . | grep md$ | xargs wc -w
clean:
rm -rf $(TARGETS)
|