mirror of
https://github.com/yweber/lodel2.git
synced 2025-12-03 17:26:54 +01:00
Adding images support for doxygen documentation ( in doc/img ) + automated images generation with graphviz & make
42 lines
777 B
Makefile
42 lines
777 B
Makefile
all: check doc pip
|
|
|
|
# Running unit tests
|
|
check:
|
|
python -m unittest -v
|
|
|
|
# Rule to update libs
|
|
pip: cleanpycache
|
|
pip install --upgrade -r requirements.txt
|
|
|
|
#
|
|
# Documentation rules
|
|
#
|
|
graphviz_images_path = doc/img/graphviz
|
|
|
|
doc: cleandoc docimages
|
|
doxygen
|
|
|
|
# Generating graphviz images
|
|
docimages:
|
|
cd $(graphviz_images_path); make
|
|
|
|
#
|
|
# Cleaning rules
|
|
#
|
|
.PHONY: check doc clean cleanpyc cleandoc cleanpycache
|
|
|
|
clean: cleanpyc cleandoc cleanpycache
|
|
|
|
# Documentation cleaning
|
|
cleandoc: cleandocimages
|
|
-rm -Rfv ./doc/html ./doc/doxygen_sqlite3.db
|
|
|
|
cleandocimages:
|
|
cd $(graphviz_images_path); make clean
|
|
|
|
# Python cleaning
|
|
cleanpyc:
|
|
-find ./ |grep -E "\.pyc$$" |xargs rm -fv 2>/dev/null
|
|
cleanpycache: cleanpyc
|
|
-find ./ -type d |grep '__pycache__' | xargs rmdir -fv 2>/dev/null
|
|
|