forked from alice-doc/alice-analysis-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 740 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
.PHONY: all serve test clean publish
all: test .gitbook_install
@echo Building page
@gitbook build
@echo Checking for spurious .md files
@if find _book -name '*.md' | grep -E '.*'; then echo I have found spurious .md files, please remove/rename them or add them to SUMMARY.md in case you forgot; exit 1; else echo All good, none found; exit 0; fi
serve: all
@echo Running GitBook web server
@while true; do gitbook serve; sleep 5; done
.gitbook_install:
@echo Installing GitBook dependencies
@gitbook install
@touch .gitbook_install
test:
@echo Running unit tests
@python -m unittest tests
clean:
@echo Cleaning up
@rm -rf _book node_modules .gitbook_install
publish: all
@echo Publishing generated pages
@./publish.sh