summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6cb4508205b49e2b51efe80c1d67823014baa82c (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
26
27
all: reading-log.pdf

watch:
ifdef TARGET
	while true; do \
		$(MAKE) $(TARGET); \
		inotifywait -qre close_write .; \
	done
else
	while true; do \
		$(MAKE) all; \
		inotifywait -qre close_write .; \
	done
endif

reading-log.pdf: reading-log.md bibliography.bib
	pandoc \
		--standalone \
		--from markdown \
		--to pdf \
		--pdf-engine pdflatex \
		--citeproc \
		--output reading-log.pdf \
		reading-log.md

clean:
	rm reading-log.pdf