forked from mbj4668/pyang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 782 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
export W := $(shell pwd)
# create a full source package
sdist: build
python setup.py sdist
-# mv dist/pyang-*.tar.gz dist/pyang_src-*.tar.gz
# create a minimal package
dist: build
python setup.py sdist
.PHONY: test tags clean doc build lint pylint
build: doc pyang/xpath_parsetab.py
doc:
(cd doc; $(MAKE))
pyang/xpath_parsetab.py: pyang/xpath_parser.py
python -m pyang.xpath_parser
test: lint
(cd test; $(MAKE) test)
lint:
flake8 .
pylint:
pylint pyang $(shell find test -name '*.py') || true
clean:
rm -f pyang/parser.out pyang/xpath_parsetab.py
(cd test && $(MAKE) clean)
(cd doc && $(MAKE) clean)
python setup.py clean --all
rm -rf build dist MANIFEST
find . -name "*.pyc" -delete
find . -name "__pycache__" -delete
tags:
find . -name "*.py" | etags -