-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (31 loc) · 809 Bytes
/
Makefile
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
32
33
34
35
36
37
PANDOC = pandoc
TALK_FILE=talk.md
REVEALJS_TGZ = https://github.com/hakimel/reveal.js/archive/4.2.1.tar.gz
article.jats.xml: index.md filters/abstract-to-meta.lua
$(PANDOC) \
--defaults=data/jats.yaml \
--to=jats_articleauthoring \
--output=$@ \
$<
article.pdf: index.md filters/abstract-to-meta.lua
$(PANDOC) \
--defaults=data/latex.yaml \
--to=latex \
--pdf-engine=lualatex \
--output=$@ \
$<
talk.html: $(TALK_FILE) reveal.js
$(PANDOC) \
--defaults=data/talk.yaml \
--output=$@ \
$<
reveal.js:
mkdir -p reveal.js
curl --location -Ss $(REVEALJS_TGZ) | \
tar zvxf - -C $@ --strip-components 1
.PHONY: watch
watch:
find . -type f \! -path './.git/*' \! -path './reveal.js/*' | entr make talk.html
.PHONY: clean
clean:
rm -f talk.html