William Petit
e4f2359324
All checks were successful
Cadoles/mktools/pipeline/head This commit looks good
35 lines
768 B
Makefile
35 lines
768 B
Makefile
.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:
|
|
git tag $(MKT_PROJECT_VERSION) && git push --tags
|
|
$(MAKE) update-changelog
|
|
$(MAKE) MKT_GITEA_RELEASE_ATTACHMENTS="CHANGELOG.md" \
|
|
MKT_GITEA_RELEASE_COMMIT_TARGET="$(MKT_PROJECT_VERSION)" \
|
|
mkt-gitea-release
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf tools
|
|
|
|
.PHONY: update-changelog
|
|
update-changelog:
|
|
$(MAKE) changelog
|
|
git add CHANGELOG.md
|
|
git commit -m "chore: update changelog"
|
|
git push
|
|
|
|
.PHONY: changelog
|
|
changelog:
|
|
git fetch --prune-tags
|
|
$(MAKE) MKT_GIT_CHGLOG_PROJECT_ORG=Cadoles MKT_GIT_CHGLOG_PROJECT_NAME=mktools mkt-changelog
|
|
|
|
include tasks/*.mk |