-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
46 lines (40 loc) · 1.02 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
# ----------------------------------
# INSTALL & TEST
# ----------------------------------
install:
@pip install -e .
test:
@python setup.py test -q
ftest:
@rm -fr /tmp/ttt; cd /tmp;\
packgenlite ttt -d TTT;\
cd ttt;\
make clean install test;\
cd /tmp;\
ttt-run;
@echo 'test_make_pkg made'
clean:
@rm -fr dist
@rm -fr build
@rm -fr packgenlite-*.dist-info
@rm -fr packgenlite.egg-info
@rm -fr packgenlite/version.txt
@find . -name \*.pyc -o -name \*.pyo -o -name __pycache__ -exec rm -rf {} +
python_count_lines:
@find ./ble -name '*.py' -exec wc -l {} \; | sort -n| awk \
'{printf "%4s %s\n", $$1, $$2}{s+=$$0}END{print s}'
@echo ''
@find ./tests -name '*.py' -exec wc -l {} \; | sort -n| awk \
'{printf "%4s %s\n", $$1, $$2}{s+=$$0}END{print s}'
@echo ''
test_make_pkg:
( \
rm -fr /tmp/ttt; cd /tmp;\
packgenlite ttt -d TTT;\
cd ttt;\
make clean install test;\
cd /tmp;\
ttt-run;\
)
@echo '#########################################'
@echo 'test_make_pkg made'