blob: fa73f522bfe432453acd2fccb1c790d97ada2450 (
plain)
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
39
40
41
42
43
44
45
|
# Watson
# git repository setup
# (used to automate travis-ci gh-pages deploy)
ifndef ($(git config user.name))
ifdef $(GH_USER_NAME)
git config user.name $(GH_USER_NAME)
endif
endif
ifndef ($(git config user.email))
ifdef $(GH_USER_EMAIL)
git config user.email $(GH_USER_EMAIL)
endif
endif
ifdef ($(GH_TOKEN))
ifdef ($(GH_REF))
git remote add upstream "https://$(GH_TOKEN)@$(GH_REF)"
endif
endif
all: install
install:
python setup.py install
install-dev:
pip install -r requirements-dev.txt
python setup.py develop
clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -type d | xargs rm -fr
distclean: clean
rm -fr *.egg *.egg-info/
docs: install-dev
python scripts/gen-cli-docs.py
mkdocs build
gh-deploy: docs
mkdocs gh-deploy -r upstream
git log -n 2 upstream/gh-pages
|