summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5e2a9d5141419d428423eeb2108a3e983c4057c6 (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
28
29
30
31
BIBLIOGRAPHY := bibliography.bib
LOG_MARKDOWN := log.md
LOG_PDF := log.pdf

all: log

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

log: $(LOG_MARKDOWN) $(BIBLIOGRAPHY)
	pandoc \
		--standalone \
		--from markdown \
		--to pdf \
		--pdf-engine pdflatex \
		--citeproc \
		--output $(LOG_PDF) \
		$(LOG_MARKDOWN)

clean:
	rm $(LOG_PDF)