forked from CNR-Engineering/PyTelTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (34 loc) · 931 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (34 loc) · 931 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
35
36
37
38
39
40
# 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 $<
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 tests -v
# .cache (generated by pytest)
clean:
rm -rf doc venv .cache
.PHONY: clean test update_doc venv