Computing the revision number from the git log sucks. The log is not
the same for everybody and there is no simple way to compute some
increasing number. The web tell me so after 30min of googling.
LDFLAGS=-lcurses
-REVISION_NUMBER=$(shell git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g")
+REVISION_NUMBER=$(cat REVISION_NUMBER)
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG
# This script creates the Debian package. The way it does it is
# probably not very conventional. I am open to suggestions.
-VERSION=1.0-R`git log | grep ^commit | wc -l | sed -e "s/[^0-9]//g"`
+VERSION=1.0-R$(cat REVISION_NUMBER)
PACKAGE=/tmp/selector_${VERSION}_i386.deb
BIN_PATH="usr/bin"
MAN_PATH="usr/share/man/man1"