forked from cpitclaudel/alectryon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 787 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
PYTHON ?= python3
test:
+$(MAKE) -C recipes clean
+$(MAKE) -C recipes
coverage:
+$(MAKE) -C recipes coverage
develop:
(which opam || { echo "OPAM not found; please install it"; exit 1; })
eval $$(opam env); opam install coq-serapi
pip install coverage[toml]
@# Local install; should be ‘pip install -e .[full]’ but see https://github.com/pypa/pip/issues/7953
$(PYTHON) -c 'import setuptools, site, sys; site.ENABLE_USER_SITE = 1; sys.argv[1:] = ["develop", "--user"]; setuptools.setup()'
.PHONY: dist
dist:
$(PYTHON) -m build
upload: dist
$(PYTHON) -m twine upload dist/*
lint-changes:
etc/lint_changes.py CHANGES.rst
lint:
pylint --rcfile=setup.cfg alectryon
mypy alectryon/
pyright --project .
FORCE:
recipes/%: FORCE
+$(MAKE) -C recipes --always-make "$*"