X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=ad27745ddf227156f69145f1e96a71c6dff8de3a;hb=8ae086989f3c71ef8fd3cf43dc0fda8c09e76493;hp=af73051de45e379e41c24e8c7643fd5df2e4f524;hpb=ff40361700c5cb93aacf742a5001f3c2d98d963c;p=spectrwm.git diff --git a/Makefile b/Makefile index af73051..ad27745 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -# $scrotwm$ .include PREFIX?=/usr/local @@ -15,6 +14,10 @@ CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3 #CFLAGS+=-DSWM_DENY_CLOCK_FORMAT CPPFLAGS+= -I${X11BASE}/include LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr -lXtst +BUILDVERSION != sh "${.CURDIR}/buildver.sh" +.if !${BUILDVERSION} == "" +CPPFLAGS+= -DSCROTWM_BUILDSTR=\"$(BUILDVERSION)\" +.endif MANDIR= ${PREFIX}/man/man