forked from CNR-Engineering/PyTelTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (36 loc) · 1.03 KB
/
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
# make clean
# Remove all potential generated folder/files
#
# make doc
# Generate doxygen documentation in doc
# make update_doc
# Update generated documentation (path to local git repository is specified in variable `DOC_PATH`)
#
# make test
# Check test cases
#
# make venv
# Create python virtual environnement
#
# Required dependencies:
# - doc: doxygen
# - test: pytest (Python package, listed in requirements.txt)
# - venv: virtualenv
#
DOC_PATH=../CNR-Engineering.github.io/PyTelTools
doc: doxygen.config
doxygen $<
python pyteltools/utils/write_cli_usage.py cli doc/cli_usage.md
update_doc: doc
rm -r ${DOC_PATH} && cp -r doc/html/* ${DOC_PATH}
cd ${DOC_PATH} && git add -A && git commit -m "Update doc" && git pull && git push && cd -
venv:
virtualenv venv --python=python3
source venv/bin/activate && pip install -r requirements.txt --upgrade
test:
pytest pyteltools/tests -v
# .cache (generated by pytest)
clean:
rm -rf doc venv .cache
find . -name '__pycache__' | xargs rm -rf
.PHONY: clean doc test update_doc venv