From: Lawrence Teo Date: Thu, 29 Dec 2011 02:38:44 +0000 (-0500) Subject: Fixes an oversight so that BUILDVERSION gets properly defined, as well X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=924aaecaaaf372d1b02a6bf195c6e9b03912e31d;p=spectrwm.git Fixes an oversight so that BUILDVERSION gets properly defined, as well as remove some debug stuff I forgot to remove earlier. From: Niclas Zeising ok marco --- diff --git a/freebsd/Makefile b/freebsd/Makefile index 130ffd5..2d97974 100644 --- a/freebsd/Makefile +++ b/freebsd/Makefile @@ -2,13 +2,10 @@ BINDIR?= $(PREFIX)/bin LIBDIR?= $(PREFIX)/lib MANDIR?= $(PREFIX)/share/man -#MAJOR!=grep "major" ../lib/shlib_version | cut -d "=" -f2 -#MINOR!=grep "minor" ../lib/shlib_version | cut -d "=" -f2 -#LVERS=${MAJOR}.${MINOR} LVERS!= awk -F = '/major/ { printf( "%s.", $$2 ) } /minor/ { printf( "%s", $$2 ) }' ${.CURDIR}/../lib/shlib_version BUILDVERSION!= sh "${.CURDIR}/../buildver.sh" .if !${BUILDVERSION} == "" -CPPFLAGS+= -DSCROTWM_BUILDSTR=\"$(BUILDVERSION)\" +CFLAGS+= -DSCROTWM_BUILDSTR=\"$(BUILDVERSION)\" .endif CFLAGS+= -Wall -Wno-uninitialized -I. -I${X11BASE}/include