commit: cf5f268f8b19262515105739bdcc112cd2a6cdbc
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 23 22:27:06 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 23 22:27:06 2022 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=cf5f268f
Makefile: add a new "tag" target
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index 91ed461..04bfcdb 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,9 @@ install-dir-%:
install-file-%: $(subst _,/,$*)
cp "$(subst _,/,$*)" "$(PREFIX)/$(subst _,/,$*)"
+tag:
+ git tag -s v$$(( $$(git tag -l --sort=-creatordate | sed -n -e
's:^v::p') + 1 ))
+
uninstall : uninstall-files
uninstall-files: $(foreach a, $(sort $(files)), \