mktools/Makefile
William Petit f7e31f8f41
Some checks failed
Cadoles/mktools/pipeline/head There was a failure building this commit
chore: tag current commit in release task
2023-08-23 15:27:01 -06:00

36 lines
704 B
Makefile

.PHONY: all
all: test build
.PHONY: test
test: tools/checkmake/bin/checkmake
tools/checkmake/bin/checkmake Makefile
.PHONY: build
build:
MKT_GITEA_RELEASE_ORG ?= Cadoles
MKT_GITEA_RELEASE_PROJECT ?= mktools
.PHONY: release
release:
$(MAKE) update-changelog
git tag $(MKT_PROJECT_VERSION)
git tag $(MKT_PROJECT_SHORT_VERSION)
git push --tags
$(MAKE) \
MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" \
mkt-gitea-release
.PHONY: clean
clean:
rm -rf tools
.PHONY: update-changelog
update-changelog:
$(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog
git add CHANGELOG.md
git commit -m "chore: update changelog"
git push --tags
include tasks/*.mk