summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1c7a5cc..71e13c6 100644
--- a/Makefile
+++ b/Makefile
@@ -40,7 +40,10 @@ LDLIBS = -lm \
GIT_VERSION = $(shell git log -1 --format='%h' -s .)
GIT_STATUS = $(shell [ -z "`git status -s -uno`" ] || echo +)
-CFLAGS += -DVERSION='"$(GIT_VERSION)$(GIT_STATUS)"'
+BUILD_DATE = $(shell date +'%Y%m%d-%H:%M')
+
+CFLAGS += -DVERSION='"$(GIT_VERSION)$(GIT_STATUS)"' \
+ -DBUILD_DATE='"$(BUILD_DATE)"'
ifneq ($(USE_WEBKIT),)
CFLAGS += -DUSE_WEBKIT `pkg-config --cflags webkit2gtk-4.0`