summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-25 15:29:38 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-08-25 15:30:20 (GMT)
commit14d2c837abe676217396ef9ffe19d79ad97a0667 (patch)
tree45bef3c3d542d4f2841e8e5bc6528f71107e2ea7 /Makefile
parent8cd2dc05b0fe2ea11ed0488d231f3086cd45b769 (diff)
downloadeeshow-14d2c837abe676217396ef9ffe19d79ad97a0667.zip
eeshow-14d2c837abe676217396ef9ffe19d79ad97a0667.tar.gz
eeshow-14d2c837abe676217396ef9ffe19d79ad97a0667.tar.bz2
eeshow -V now also shows the build date
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`