From bcf3570f66b803f6c89eca8c3747bd468b9db8d5 Mon Sep 17 00:00:00 2001 From: ge Date: Sun, 20 Oct 2024 22:14:22 +0300 Subject: [PATCH] automatic version --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a708492..fa5ba16 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -PT_VERSION ?= 0.0.1 - all: prod dev: @@ -7,7 +5,7 @@ dev: prod: v -prod -cc gcc -cflags '-static -s' -o pt src/ \ - -d pt_version=$(PT_VERSION) \ + -d pt_version=$$(git describe --tags) \ -d pt_piddir=pt \ -d pt_max_recursion_depth=10 \ -d pt_default_config_file=~/.ptrc