forked from sonyxperiadev/ave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (48 loc) · 1.4 KB
/
Makefile
File metadata and controls
60 lines (48 loc) · 1.4 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Makefile for AVE
PWD := $(shell pwd)
PIP := $(shell which pip)
ifeq ($(wildcard $(PIP)),)
$(error pip must be available)
endif
# You can set these variables from the command line.
GH_PAGES_SOURCES = broker common documentation gerrit handset relay utils vcsjob workspace Makefile
all: sdist
sdist:
python setup.py sdist
build:
python setup.py build
install:
python setup.py install
install-requires: sdist
pip install -r ave.egg-info/requires.txt
install-all: install-requires install
debian:
./mkdeb
gh-pages:
git reset --soft github/gh-pages || \
(git remote add github git@github.com:sonyxperiadev/ave.git && \
git fetch github) && git reset --soft github/gh-pages # gh-pages already exists
cd documentation && \
make html && \
cd $(PWD) && \
mv documentation/_build/html ./ && \
rm -rf $(GH_PAGES_SOURCES) && \
rsync -a ./html/ ./ && \
rm -rf ./html
touch .nojekyll
git add -A && \
git commit -m \
"Generated gh-pages for `git log master -1 --pretty=short --abbrev-commit`" \
&& git push --dry-run github HEAD:refs/heads/gh-pages && \
echo "Push the branch by git push github HEAD:refs/heads/gh-pages"
clean:
rm -rf build
rm -rf ave.egg-info/
rm -rf common/src/ave/apk.py
rm -rf common/src/ave/ftpclient.py
rm -rf common/src/ave/git.py
rm -rf common/src/ave/jenkins.py
rm -rf common/src/ave/workspace.py
rm -rf dist
rm -rf common/src/ave/base_workspace.py
git checkout *__init__.py