forked from hsf-training/analysis-essentials
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (24 loc) · 907 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
.PHONY: all clean serve pdf
all: node_modules shell/files/data-shell.zip
gitbook build
@cp shell/files/data-shell.zip _book/shell/files/
-@cp analysis-essentials.pdf _book/
serve: node_modules shell/files/data-shell.zip
while true; do gitbook serve; sleep 5; done
pdf: node_modules
gitbook pdf
@mv book.pdf analysis-essentials.pdf
shell/files/data-shell.zip: $(shell find shell/data-shell/ -type f)
cd shell && zip -r files/data-shell.zip data-shell && cd ..
node_modules:
gitbook install
test: all
python -m unittest tests
clean:
@rm -rf _book
@rm -f book.pdf analysis-essentials.pdf
@rm -rf node_modules
@rm -f tests/*.pyc
publish-travis: all pdf
@ghp-import -n ./_book && git push -fq https://${GH_TOKEN}@github.com/$(TRAVIS_REPO_SLUG).git gh-pages > /dev/null
@ghp-import -n ./_book && git push -fq https://${GH_TOKEN}@github.com/lhcb/analysis-essentials.git gh-pages > /dev/null