2019-11-17 22:51:38 +01:00
help : ## Show this help
@echo "make <target>, where <target> is one of:"
2020-02-11 08:48:29 +01:00
@grep -hP "\t##" $( MAKEFILE_LIST) | sed -e 's/^\([a-z]*\):.*## / \1\t/' | expand -t14
2019-11-17 22:51:38 +01:00
2020-10-17 16:33:39 +02:00
install : ## Install Gaphor in a local virtual environment
poetry install
dist : translations ## Build application distribution package
2020-02-11 08:48:29 +01:00
poetry build
2019-11-17 22:51:38 +01:00
2020-10-17 16:33:39 +02:00
test : ## Run all but slow tests
poetry run pytest -m "not slow"
test-all : ## Run all tests, including coverage
poetry run pytest --cov= gaphor/
2020-02-22 19:45:02 +01:00
2020-10-17 16:33:39 +02:00
docs : ## Generate documentation
poetry run $( MAKE) -C docs html
2019-11-17 22:51:38 +01:00
icons : ## Generate icons from stensil (requires Inkscape)
$( MAKE) -C gaphor/ui/icons
2020-10-17 16:33:39 +02:00
translations : ## Translate and update .po and .mo files
poetry run $( MAKE) -C po
2020-02-11 08:48:29 +01:00
2021-02-21 14:54:52 -05:00
## Generate Python model files from Gaphor models
models : gaphor /core /modeling /coremodel .py gaphor /UML /uml .py gaphor /SysML /sysml .py gaphor /C 4Model /c 4model .py gaphor /RAAML /raaml .py
2020-04-09 23:03:55 +02:00
2020-04-18 19:06:33 -04:00
gaphor/core/modeling/coremodel.py : models /Core .gaphor models /Core .override gaphor /codegen /uml_coder .py gaphor /codegen /override .py gaphor /codegen /writer .py
2021-02-12 20:41:13 +01:00
poetry run gaphor/codegen/codegen.py models/Core.gaphor $@ models/Core.override && black $@ && mypy gaphor/core/modeling && isort gaphor/core/modeling/coremodel.py
2020-02-22 13:34:23 +01:00
2020-04-18 19:06:33 -04:00
gaphor/UML/uml.py : models /UML .gaphor models /UML .override gaphor /codegen /uml_coder .py gaphor /codegen /override .py gaphor /codegen /writer .py
2021-02-12 20:41:13 +01:00
poetry run gaphor/codegen/codegen.py models/UML.gaphor $@ models/UML.override && mypy gaphor/UML && isort $@ && black $@
2020-04-13 19:23:14 -04:00
2020-04-18 19:06:33 -04:00
gaphor/SysML/sysml.py : models /SysML .gaphor models /SysML .override gaphor /codegen /profile_coder .py gaphor /codegen /override .py gaphor /codegen /writer .py
2021-05-08 16:19:56 -04:00
poetry run gaphor/codegen/codegen.py --uml_profile models/SysML.gaphor $@ models/SysML.override && black $@ && isort $@ && mypy gaphor/SysML
2020-04-13 19:23:14 -04:00
2021-05-08 14:35:32 -04:00
gaphor/RAAML/raaml.py : models /RAAML .gaphor models /RAAML .override gaphor /codegen /profile_coder .py gaphor /codegen /override .py gaphor /codegen /writer .py
2021-05-08 16:19:56 -04:00
poetry run gaphor/codegen/codegen.py --sysml_profile models/RAAML.gaphor $@ models/RAAML.override && mypy gaphor/RAAML && isort $@ && black $@
2021-02-12 20:41:13 +01:00
gaphor/C4Model/c4model.py : models /C 4Model .gaphor models /C 4Model .override gaphor /codegen /profile_coder .py gaphor /codegen /override .py gaphor /codegen /writer .py
2021-05-08 16:19:56 -04:00
poetry run gaphor/codegen/codegen.py --uml_profile models/C4Model.gaphor $@ models/C4Model.override && mypy gaphor/C4Model && isort $@ && black $@
2020-02-22 13:34:23 +01:00
2020-05-26 08:26:43 +02:00
.PHONY : help dist test docs icons translations models