summaryrefslogtreecommitdiff
path: root/Makefile
blob: f1981a41eb732fed91aa6af58a267c91a778f1fb (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
TARGETS=index.html\
	authors.html\
	studies/exams.html\
	studies/subjects/computer-science.html\
	studies/subjects/economics.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)