summaryrefslogtreecommitdiff
path: root/Makefile
blob: eee07d9341be652eb58ef5548821f2aad7bcbfde (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
default: build

build: 
	ls -1 | grep target || mkdir target
	pandoc -C paper.md --pdf-engine=xelatex -H https://mohit.uk/formatting.tex -V fontsize:12pt -o target/paper.pdf
	pandoc -C paper.md --css=https://mohit.uk/document.css -s -o target/paper.html
	
	make plan
	cp target/paper.pdf 'target/Agarwal,Mohit.pdf'

plan:
	pandoc plan.md --pdf-engine=xelatex -H https://mohit.uk/formatting.tex -V fontsize:12pt -o target/plan.pdf

clean:
	rm -rf target 

count:
	echo "Maximum wordcount (including bibliography):"
	echo "3500"
	echo "Current wordcount (including bibliography):"
	pandoc -C
	paper.md -t plain | wc -w

read:
	zathura target/paper.pdf&