aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-04-03 15:26:01 -0400
committerfrosty <gabriel@bwaaa.monster>2026-04-03 15:26:01 -0400
commit627a219bea8029107fcee77fbeea7eb79f0a79b2 (patch)
tree48f3b39bb02853191462e7873cd4beef0fded73d /Makefile
parentdb02c4cc8028606fa57fd50424491008990ef6fd (diff)
downloadomnisearch-627a219bea8029107fcee77fbeea7eb79f0a79b2.tar.gz
feat: made version on homepage link to repo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ecd6585..e57c991 100644
--- a/Makefile
+++ b/Makefile
@@ -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)