-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (31 loc) · 873 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
IMAGES_FOLDER ?= $(INPUT_FOLDER)/images
INPUT_FOLDER ?= $(shell pwd)
OUTPUT_FOLDER ?= $(shell pwd)/dist
slides:
@pandoc rust-async.md \
--to revealjs \
--output rust-async.html \
--template template/index.html \
-V revealjs-url=template \
-V theme=moon \
-V progress=false \
-V slideNumber=true \
-V history=true \
--standalone --slide-level 2
pdf: slides
@echo "This might take a while, I'll beep when it's done"
@echo ""
npx decktape reveal `pwd`/rust-async.html rust-async.pdf
@echo -e "\a"
beamer:
cp -R $(IMAGES_FOLDER) $(OUTPUT_FOLDER); \
cd $(INPUT_FOLDER); \
$(PANDOC) $(INPUT_FOLDER)/rust-async.md \
--from=$(MARKDOWN_OPTIONS) \
--base-header-level=2 \
--table-of-contents \
$(FILTER_OPTIONS) \
--default-image-extension=pdf \
--standalone \
--template=$(LATEX_TEMPLATE) \
--to=beamer --output=$(OUTPUT_FOLDER)/index.$(LATEX_FILETYPE);