X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=9838c514d4e38d291a07c64b3486d02885c17a95;hb=541825e2a78ccbfb073a9476c57ccacb1767ba90;hp=451aeb40c21c11aee4896feb6c2af856d3278355;hpb=e3e48a907fb032bfed42e814e0f04252e9626ab1;p=selector.git diff --git a/Makefile b/Makefile index 451aeb4..9838c51 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ + # # selector is a simple shell command for selection of strings with a # dynamic pattern-matching. @@ -22,13 +23,15 @@ LDFLAGS=-lcurses +REVISION_NUMBER=$(shell git log | grep ^commit | wc -l) + ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG else OPTIMIZE_FLAG = -ggdb3 -O3 endif -CXXFLAGS = -Wall $(OPTIMIZE_FLAG) +CXXFLAGS = -DREVISION_NUMBER=$(REVISION_NUMBER) -Wall $(OPTIMIZE_FLAG) all: selector