-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 769 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 769 Bytes
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
.PHONY: all clean serve pdf
help:
@echo "Available rules are:"
@echo " serve: Start local gitbook server"
@echo " node_modules: Install dependencies"
@echo " all: Build website and pdf without launching local server"
@echo " pdf: Build the pdf copy of the website"
@echo " clean: Clean up"
all: node_modules
gitbook build
-@cp bender-tutorials.pdf _book/
serve: node_modules
while true; do gitbook serve; sleep 5; done
pdf: node_modules
gitbook pdf
@mv book.pdf bender-tutorials.pdf
node_modules:
gitbook install
clean:
@rm -rf _book
@rm -f book.pdf bender-tutorials.pdf
@rm -rf node_modules
publish-travis: all pdf
@ghp-import -n ./_book && git push -fq https://${GH_TOKEN}@github.com/$(TRAVIS_REPO_SLUG).git gh-pages > /dev/null