forked from skinner/pbreports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 1.01 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
.PHONY: all clean install dev-install test
SHELL = /bin/bash -e
install:
@which pip > /dev/null
@pip freeze|grep 'pbreports=='>/dev/null \
&& pip uninstall -y pbreports \
|| echo -n ''
@pip install ./
@echo "Installed version pbreports $(shell pbreports --version)"
dev-install:
python setup.py develop
clean:
rm -rf build/;\
find . -name "*.egg-info" | xargs rm -rf;\
find . -name "*.pyc" | xargs rm -f;\
find . -name "*.err" | xargs rm -f;\
find . -name "*.log" | grep -v amplicon_analysis | xargs rm -f;\
rm -rf dist/
test:
nosetests --nocapture --nologcapture --verbose tests/unit/test*.py
pip-install:
@which pip > /dev/null
@pip freeze|grep 'pbreports=='>/dev/null \
&& pip uninstall -y pbreports \
|| true
@pip install --no-index \
--install-option="--install-scripts=$(PREFIX)/bin" ./
run-pep8:
find pbreports -name "*.py" -exec pep8 --ignore=E501,E265,E731,E402 {} \;
run-auto-pep8:
find reports -name "*.py" -exec autopep8 -i --ignore=E501,E265,E731,E402 {} \;