aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-17 12:39:38 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-17 12:39:38 +0800
commit2fd6b9155deb5b33031c21360a18f6406a4fe8ee (patch)
tree596a85a7a115545553cd8d21e589bf8c6ac14a0d /Makefile
parentREADME.md: Clarify build dependencies (diff)
downloadforge-2fd6b9155deb5b33031c21360a18f6406a4fe8ee.tar.gz
forge-2fd6b9155deb5b33031c21360a18f6406a4fe8ee.tar.zst
forge-2fd6b9155deb5b33031c21360a18f6406a4fe8ee.zip
Makefile: Don't use --long in git-describe
We don't need the commit ID if it is known to match a tag.
Diffstat (limited to '')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a35195c..bda106d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ forge: $(filter-out forge,$(wildcard *)) version.go git_hooks_client/*.c git_hoo
git_hooks_client/git_hooks_client:
version.go:
- printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --long --always --dirty) > $@
+ printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --always --dirty) > $@
clean:
$(RM) forge version.go vendor