about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--linux/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/Makefile b/linux/Makefile
index 542246c..b17c5e1 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -16,6 +16,11 @@ DEPS= $(addsuffix .depend, $(OBJS))
 
 CC?= gcc
 
+BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
+ifneq ("${BUILDVERSION}", "")
+CFLAGS+= -DXXXTERM_BUILDSTR=\"$(BUILDVERSION)\"
+endif
+
 all: javascript.h xxxterm
 
 javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js