gaphor/Makefile
2020-04-09 23:18:29 +02:00

30 lines
1.1 KiB
Makefile

help: ## Show this help
@echo "make <target>, where <target> is one of:"
@grep -hP "\t##" $(MAKEFILE_LIST) | sed -e 's/^\([a-z]*\):.*## / \1\t/' | expand -t14
dist: translate ## Build application distribution (requires Poetry)
poetry build
test: ## Run all but slow tests (requires PyTest)
pytest -m "not slow"
docs: ## Generate documentation (requirss Sphinx)
$(MAKE) -C docs html
icons: ## Generate icons from stensil (requires Inkscape)
$(MAKE) -C gaphor/ui/icons
translate: ## Translate and update .po and .mo files (requires PyBabel)
$(MAKE) -C po
model: gaphor/core/modeling/coremodel.py gaphor/UML/uml2.py ## Generate Python model files from Gaphor models (requires Black, MyPy)
gaphor/core/modeling/coremodel.py: models/Core.gaphor models/Core.override utils/model/gen_uml.py utils/model/override.py utils/model/writer.py
utils/model/build_core.py && black $@ && mypy gaphor/core/modeling
gaphor/UML/uml2.py: gaphor/UML/uml2.gaphor gaphor/UML/uml2.override utils/model/gen_uml.py utils/model/override.py utils/model/writer.py
utils/model/build_uml.py && black $@ && mypy gaphor/UML
.PHONY: help dist test docs icons translate model