-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
32 lines (25 loc) · 841 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
PROJECT=jamo
PYTHON := /usr/bin/env python
PYTHON_VERSION=$(shell $(PYTHON) -c 'import sys; print(sys.version_info[0])')
JAMO_VERSION=$(shell $(PYTHON) -c 'import jamo; print(jamo.__version__)')
default:
@echo "install: install the package and scripts"
@echo "clean: remove build/test artifacts"
@echo "lint: check syntax"
@echo "test: run unit tests"
@echo "Python Version: $(PYTHON_VERSION)"
@echo " Jamo Version: $(JAMO_VERSION)"
install:
python setup.py install
clean:
find . -name \*.pyc -exec rm -f {} \;
find . -depth -type d -name __pycache__ -exec rm -rf {} \;
rm -rf build dist $(PROJECT).egg-info
lint:
flake8 --ignore=E123,E501,F401 $(PROJECT)
format:
autopep8 -r --in-place --exit-code $(PROJECT)
test:
nose2 --with-coverage --coverage=$(PROJECT)
dist/jamo-$(JAMO_VERSION).tar.gz:
$(PYTHON) setup.py sdist