2023-08-23 19:54:18 +02:00
|
|
|
.PHONY: all
|
|
|
|
all: test build
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: tools/checkmake/bin/checkmake
|
|
|
|
tools/checkmake/bin/checkmake Makefile
|
|
|
|
|
|
|
|
MKT_GITEA_RELEASE_ORG ?= Cadoles
|
|
|
|
MKT_GITEA_RELEASE_PROJECT ?= mktools
|
|
|
|
|
|
|
|
.PHONY: release
|
|
|
|
release:
|
2023-08-23 23:27:01 +02:00
|
|
|
git tag $(MKT_PROJECT_VERSION)
|
|
|
|
git push --tags
|
2023-08-23 23:33:35 +02:00
|
|
|
$(MAKE) update-changelog
|
2023-08-23 19:54:18 +02:00
|
|
|
$(MAKE) \
|
|
|
|
MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" \
|
2023-08-23 23:33:35 +02:00
|
|
|
MKT_GITEA_RELEASE_COMMIT_TARGET="$(MKT_PROJECT_VERSION)" \
|
2023-08-23 19:54:18 +02:00
|
|
|
mkt-gitea-release
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf tools
|
|
|
|
|
|
|
|
.PHONY: update-changelog
|
|
|
|
update-changelog:
|
2023-08-23 23:33:35 +02:00
|
|
|
$(MAKE) changelog
|
2023-08-23 19:54:18 +02:00
|
|
|
git add CHANGELOG.md
|
|
|
|
git commit -m "chore: update changelog"
|
2023-08-23 23:40:36 +02:00
|
|
|
git push
|
2023-08-23 19:54:18 +02:00
|
|
|
|
2023-08-23 23:33:35 +02:00
|
|
|
.PHONY: changelog
|
|
|
|
changelog:
|
2023-08-23 23:40:36 +02:00
|
|
|
git fetch --prune-tags
|
2023-08-23 23:33:35 +02:00
|
|
|
$(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog
|
|
|
|
|
2023-08-23 19:54:18 +02:00
|
|
|
include tasks/*.mk
|