[CLEANUP] make makefile more old sh-friendly

Older SH on Solaris does not know about $(cmd) but only know `cmd`.
This commit is contained in:
Willy Tarreau 2007-04-09 22:07:11 +02:00
parent 40562cb00c
commit a1973c4d82
1 changed files with 3 additions and 3 deletions

View File

@ -108,13 +108,13 @@ DEFINE = -DTPROXY
# Now let's determine the version, sub-version and release date. # Now let's determine the version, sub-version and release date.
# If we're in the GIT tree, we can use the last commit's version and date. # If we're in the GIT tree, we can use the last commit's version and date.
ifeq ($(IGNOREGIT),) ifeq ($(IGNOREGIT),)
VERSION := $(shell [ -d .git/. ] && ref=$$(git-describe --tags 2>/dev/null) && ref=$${ref%-g*} && echo "$${ref\#v}" ) VERSION := $(shell [ -d .git/. ] && ref=`git-describe --tags 2>/dev/null` && ref=$${ref%-g*} && echo "$${ref\#v}" )
endif endif
ifneq ($(VERSION),) ifneq ($(VERSION),)
# OK git is there and works. # OK git is there and works.
SUBVERS := $(shell comms=$$(git-log --no-merges v$(VERSION).. 2>/dev/null |grep -c ^commit ); [ $$comms -gt 0 ] && echo "-$$comms" ) SUBVERS := $(shell comms=`git-log --no-merges v$(VERSION).. 2>/dev/null |grep -c ^commit `; [ $$comms -gt 0 ] && echo "-$$comms" )
VERDATE := $(shell date +%Y/%m/%d -d "$$(git-log HEAD^.. 2>/dev/null | grep -m 1 ^Date: | cut -f2- -d: | cut -f1 -d+)" ) VERDATE := $(shell date +%Y/%m/%d -d "`git-log HEAD^.. 2>/dev/null | grep -m 1 ^Date: | cut -f2- -d: | cut -f1 -d+`" )
else else
# Otherwise, use the hard-coded version of last tag, number of changes # Otherwise, use the hard-coded version of last tag, number of changes
# since last tag, and release date. # since last tag, and release date.