forked from cjdrake/pyeda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 758 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 758 Bytes
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
# Filename: Makefile
PYLINT := pylint
PYTHON := python3
PIP_INSTALL_FLAGS := -r requirements.txt
.PHONY: help
help:
@printf "Usage: make [options] [target] ...\n"
@printf "\n"
@printf "Valid targets:\n"
@printf "\n"
@printf " help Display this help message\n"
@printf " test Run unit test suite\n"
@printf " lint Run lint checks\n"
@printf " cover Collect coverage\n"
@printf " html Build Sphinx documentation\n"
.PHONY: test
test:
@pytest --doctest-modules --ignore=doc
.PHONY: lint
lint:
@$(PYLINT) pyeda --rcfile .pylintrc
.PHONY: cover
cover:
@pytest --doctest-modules --ignore=doc --cov=pyeda --cov-report=html
.PHONY: html
html:
@$(PYTHON) setup.py build_sphinx