don't require that hacky last_release tag for PATCHLEVEL, needs more thought

This commit is contained in:
Simon Michael 2013-04-06 12:38:25 -07:00
parent 9ffd34687a
commit 0140cf62ab

View File

@ -94,9 +94,10 @@ VERSIONFILE=VERSION
# two or three-part version string, whatever's in VERSION
VERSION:=$(shell cat $(VERSIONFILE))
# the number of changes recorded since last tag in this repo
#PATCHLEVEL:=$(shell expr `git describe --long | awk -F - '{print $$2}' `)
PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)
# the number of commits since the last tag
PATCHLEVEL:=$(shell expr `git describe --long | awk -F - '{print $$2}' `)
# the number of commits since the last_release tag
#PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)
# build flags
WARNINGS:=-W -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-name-shadowing #-fwarn-orphans -fwarn-simple-patterns -fwarn-monomorphism-restriction