]> code.delx.au - spectrwm/commitdiff
attempt to print the git version in the version string
authorMarco Peereboom <marco@conformal.com>
Fri, 17 Feb 2012 15:49:48 +0000 (09:49 -0600)
committerMarco Peereboom <marco@conformal.com>
Fri, 17 Feb 2012 15:50:21 +0000 (09:50 -0600)
linux/Makefile

index 6f95f461f3b4ee804e8f628487927b266837451f..6f87778e54334bbc063b22cacbf1f27f3cc2b777 100644 (file)
@@ -11,6 +11,9 @@ CC= gcc
 
 LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
 
+BUILDVERSION= $(shell sh ../buildver.sh)
+CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
+
 all: spectrwm libswmhack.so.$(LVERS)
 
 spectrwm.c: