From 924aaecaaaf372d1b02a6bf195c6e9b03912e31d Mon Sep 17 00:00:00 2001 From: Lawrence Teo Date: Wed, 28 Dec 2011 21:38:44 -0500 Subject: [PATCH] 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 --- freebsd/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.39.2