-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (35 loc) · 1.01 KB
/
Makefile
File metadata and controls
50 lines (35 loc) · 1.01 KB
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
49
50
# K.Karandashev: Largely inspired by the makefile from https://github.com/qmlcode/qmllib
# I made it more lightweight though, giving the developer more leeway on what environment
# to base and test their commit in.
# if in your environment "python" or "pip" are aliases for another command modify these
# lines accordingly.
python=python
pip=pip
doxygen_main=./doxygen/html/index.html
all: install
dev-env:
$(pip) install pre-commit
./.git/hooks/commit-msg: dev-env
pre-commit install --hook-type commit-msg
./.git/hooks/pre-commit: dev-env
pre-commit install
conventional-commits: ./.git/hooks/commit-msg
dev-setup: dev-env ./.git/hooks/pre-commit
review: dev-setup
pre-commit run --all-files
test-env:
$(pip) install pytest
test: test-env
$(python) -m pytest -rs ./tests
install:
$(pip) install .$(OPT)
$(doxygen_main):
$(python) doxygen/run_doxygen.py
docs: $(doxygen_main)
clean:
rm -Rf ./build
rm -Rf ./dist
rm -Rf ./qml2.egg-info
rm -Rf ./tests/test_data/perturbed_qm7
rm -Rf ./doxygen/html
rm -f *.html