From cf5f268f8b19262515105739bdcc112cd2a6cdbc Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 23 Feb 2022 23:27:06 +0100 Subject: Makefile: add a new "tag" target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- 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)), \ -- cgit v1.2.3-18-g5258