-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
48 lines (38 loc) · 844 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
DOCUMENTATION_DIRECTORY := docs
.PHONY: init
init:
@pip install -r requirements.txt
.PHONY: install
install:
@./setup.py install --optimize=1 --record=install_log.txt
.PHONY: build
build:
@./setup.py build
.PHONY: check
check:
@flake8 --show-source --statistics cmus_notify tests
.PHONY: coverage
coverage:
@coverage run --source cmus_notify -m py.test
@coverage report
.PHONY: test
test:
@./setup.py test
.PHONY: doc
doc:
@sphinx-apidoc --force -o $(DOCUMENTATION_DIRECTORY) ./cmus_notify/
.PHONY: html
html: doc
@$(MAKE) -C $(DOCUMENTATION_DIRECTORY) html
.PHONY: doc
man: doc
@$(MAKE) -C $(DOCUMENTATION_DIRECTORY) man
.PHONY: clean
clean:
@rm -rf dist/
@rm -rf build/
@rm -rf cmus_notify.egg-info/
@find . -name '*.pyc' -exec rm {} \;
@find . -name '__pycache__' -exec rm -rf {} \;
@rm -rf samples/
@rm -rf data/