-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (30 loc) · 855 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
38
##
# DScD Pandoc Presentation
#
# @file
# @version 0.1
# @author Blair Drummond
PDF_NAME = presentation
WATCH = content.md
build: .build/titlepage.pdf .build/content.pdf
pdfunite .build/titlepage.pdf .build/content.pdf $(PDF_NAME).pdf
rm -rf .build
dev: $(WATCH)
@echo "Watching content.md for changes"
inotifywait -m $(WATCH) -e modify | while read path action file; do \
make build; \
done;
# Gitlab needs a static name
gitlab: build
@cp $(PDF_NAME).pdf presentation-gitlab.pdf
template:
cp -n .template/* .
.build/titlepage.pdf: content.md
@echo Make the title page
@mkdir -p .build
pandoc -s -t beamer --template .DScD-titlepage.beamer -o .build/titlepage.pdf content.md
.build/content.pdf: content.md
@echo Make the title page
@mkdir -p .build
pandoc -s -t beamer --template .DScD.beamer -o .build/content.pdf content.md
# end