forked from borgbackup/borgbackup.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 832 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
PAGES=\
index.html\
demo.html\
support/free.html\
support/commercial.html\
releases/index.html \
releases/borg-1.1.html
INCLUDES=\
releases/releases.rst.inc
TEMPLATE=rst_template.txt
STYLESHEET_DIRS=_assets
STYLESHEETS=minimal.css,plain.css,borg.css
RST_OPTIONS=--template=$(TEMPLATE) \
--embed-stylesheet --stylesheet-dirs=$(STYLESHEET_DIRS) --stylesheet-path=$(STYLESHEETS)
all: $(PAGES)
clean:
rm -f $(PAGES)
%.html: %.rst rst_template.txt _assets/* $(INCLUDES)
rst2html5.py $(RST_OPTIONS) $< $@
demo.html: demo.rst rst_template.txt _assets/* $(INCLUDES)
# The asciinema stylesheet is really big (50K), so only embed it into the demo page,
# not every page. To do this, we specialize on the pattern rule above.
rst2html5.py $(RST_OPTIONS) --stylesheet-path=$(STYLESHEETS),_assets/asciinema-player-v2.4.1.css $< $@