forked from LPgenerator/mattermost_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 1.05 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.PHONY: clean
# target: clean - Clean temporary files
clean: clean-build clean-pyc
clear: clean
@true
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
clean-pyc:
@find . -name '*.pyc' -exec rm -f {} +
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '*~' -exec rm -f {} +
.PHONY: pep8
# target: pep8 - Check code for pep8 rules
pep8:
@flake8 mattermost_bot --exclude=mattermost_bot/settings.py
.PHONY: release
# target: release - Release app into PyPi
release: clean
@python setup.py register sdist upload --sign
@python setup.py bdist_wheel upload --sign
sdist: clean
@python setup.py sdist
@ls -l dist
.PHONY: run
# target: run - Run bot
run:
matterbot
.PHONY: sphinx
# target: sphinx - Make app docs
sphinx:
@rm -rf ./docs/.build/html/
@cd docs && sphinx-build -b html -d .build/doctrees . .build/html
@xdg-open docs/.build/html/index.html >& /dev/null || open docs/.build/html/index.html >& /dev/null || true
.PHONY: help
# target: help - Display callable targets
help:
@egrep "^# target:" [Mm]akefile | sed -e 's/^# target: //g'