2024-11-27 11:43:55 -08:00
|
|
|
.ONESHELL:
|
|
|
|
|
2024-11-30 12:38:00 -08:00
|
|
|
.PHONY: issetup
|
|
|
|
issetup:
|
2024-12-01 21:40:54 -08:00
|
|
|
@[ -f .git/hooks/commit-msg ] || [ -v SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1)
|
2024-11-30 12:38:00 -08:00
|
|
|
|
|
|
|
.PHONY: setup
|
|
|
|
setup:
|
|
|
|
@cp .gitea/conventional_commits/commit-msg .git/hooks/
|
|
|
|
|
2024-11-27 07:30:24 -08:00
|
|
|
.PHONY: help
|
|
|
|
help: ## Show the help.
|
|
|
|
@echo "Usage: make <target>"
|
|
|
|
@echo ""
|
|
|
|
@echo "Targets:"
|
|
|
|
@fgrep "##" Makefile | fgrep -v fgrep
|
|
|
|
|
2024-11-27 10:20:16 -08:00
|
|
|
.PHONY: buildrel
|
2024-11-30 12:38:00 -08:00
|
|
|
buildrel: issetup ## Format code.
|
2024-11-27 10:20:16 -08:00
|
|
|
dotnet build -c Release project_name.sln
|
|
|
|
|
|
|
|
.PHONY: build
|
2024-11-30 12:38:00 -08:00
|
|
|
build: issetup ## Format code.
|
2024-11-27 10:20:16 -08:00
|
|
|
dotnet build project_name.sln
|
|
|
|
|
|
|
|
.PHONY: publish
|
2024-11-30 12:38:00 -08:00
|
|
|
publish: issetup ## Format code.
|
2024-11-27 10:20:16 -08:00
|
|
|
dotnet publish -c Release project_name.sln
|
|
|
|
|
2024-11-27 07:30:24 -08:00
|
|
|
.PHONY: fmt
|
2024-11-30 12:38:00 -08:00
|
|
|
fmt: issetup ## Format code.
|
2024-11-27 10:04:30 -08:00
|
|
|
dotnet format project_name.sln
|
2024-11-27 07:30:24 -08:00
|
|
|
|
|
|
|
.PHONY: lint
|
2024-11-30 12:38:00 -08:00
|
|
|
lint: issetup ## Lint code.
|
2024-11-27 10:04:30 -08:00
|
|
|
dotnet format --verify-no-changes --verbosity diagnostic project_name.sln
|
2024-11-27 07:30:24 -08:00
|
|
|
|
|
|
|
.PHONY: test
|
2024-11-30 12:38:00 -08:00
|
|
|
test: issetup ## Run tests and generate coverage report.
|
2024-11-27 10:04:30 -08:00
|
|
|
dotnet test project_name.sln
|
2024-11-27 07:30:24 -08:00
|
|
|
|
|
|
|
.PHONY: clean
|
2024-11-30 12:38:00 -08:00
|
|
|
clean: issetup ## Clean unused files.
|
2024-11-27 10:04:30 -08:00
|
|
|
dotnet clean project_name.sln
|
2024-11-27 07:30:24 -08:00
|
|
|
|
|
|
|
.PHONY: release
|
2024-11-30 12:38:00 -08:00
|
|
|
release: issetup ## Create a new tag for release.
|
|
|
|
@./.gitea/conventional_commits/generate-version.sh
|
2024-11-27 07:30:24 -08:00
|
|
|
|
|
|
|
.PHONY: docs
|
2024-11-30 12:38:00 -08:00
|
|
|
docs: issetup ## Build the documentation.
|
2024-11-27 07:30:24 -08:00
|
|
|
@echo "building documentation ..."
|
2024-11-27 11:43:55 -08:00
|
|
|
@mkdocs build
|
2024-11-30 12:38:00 -08:00
|
|
|
@URL="site/index.html"; xdg-open $$URL || sensible-browser $$URL || x-www-browser $$URL || gnome-open $$URL || open $$URL
|
2024-11-27 07:30:24 -08:00
|
|
|
|
|
|
|
# This project has been generated from rochacbruno/python-project-template
|
|
|
|
# __author__ = 'rochacbruno'
|
|
|
|
# __repo__ = https://github.com/rochacbruno/python-project-template
|
|
|
|
# __sponsor__ = https://github.com/sponsors/rochacbruno/
|