make buildversion optional, from drahn

This commit is contained in:
Marco Peereboom 2012-02-17 10:07:06 -06:00
parent 1e065dd313
commit bec4acf876

View file

@ -12,7 +12,9 @@ CC= gcc
LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
ifneq ("${BUILDVERSION}", "")
CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
endif
all: spectrwm libswmhack.so.$(LVERS)