feat: made version on homepage link to repo

This commit is contained in:
frosty
2026-04-03 15:26:01 -04:00
parent db02c4cc80
commit 627a219bea
5 changed files with 15 additions and 2 deletions

View File

@@ -6,10 +6,11 @@ PKG_DEPS := libxml-2.0 libcurl openssl
GIT_HASH := $(shell git rev-parse --short HEAD)
GIT_DATE := $(shell git log -1 --format='%ad' --date='format:%y.%m.%d')
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
GIT_REMOTE := $(shell git remote get-url origin)
VERSION := $(GIT_DATE)+$(GIT_HASH)_$(GIT_BRANCH)
CFLAGS := -Wall -Wextra -O2 -Isrc -DVERSION='"$(VERSION)"'
CFLAGS := -Wall -Wextra -O2 -Isrc -DVERSION='"$(VERSION)"' -DGIT_REMOTE='"$(GIT_REMOTE)"'
ifeq ($(UNAME_S),Darwin)
DEP_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PKG_DEPS) 2>/dev/null)