-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (37 loc) · 961 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
PYTHON = python
PYLINT = pylint
COVERAGE = coverage
SPHINX-BUILD = sphinx-build
sdist: README docs
$(PYTHON) setup.py sdist
egg: README docs
$(PYTHON) setup.py bdist_egg
wininst: README docs
$(PYTHON) setup.py bdist_wininst
upload-linux: README docs
$(PYTHON) setup.py sdist upload
$(PYTHON) setup.py bdist_egg upload
upload-win: README docs
$(PYTHON) setup.py sdist upload
$(PYTHON) setup.py bdist_egg upload
$(PYTHON) setup.py bdist_windows upload
docs: doc/conf.py doc/index.rst nmevent/nmevent.py
make -C doc html
clean:
rm -fR build dist nmevent.egg-info htmlcov doc/html
rm -fR nmevent/nmevent.egg-info nmevent/*.pyc
rm -f .coverage README
make -C doc clean
testonly:
$(PYTHON) test/test_nmevent.py
unittest:
$(COVERAGE) run test/test_nmevent.py
echo
$(COVERAGE) report -m
$(COVERAGE) html
lint:
$(PYLINT) nmevent/nmevent.py
README: nmevent/nmevent.py
rm -f README
make -C doc text/index.txt
cp doc/text/index.txt README