mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
build system: use $(filter ...) to test MAKECMDGOALS
This makes the test easier to extend to more targets. It also corrects a bug where "special" targets were only detected when given alone.
This commit is contained in:
parent
6237f3808c
commit
6a9711b1fb
1 changed files with 1 additions and 5 deletions
|
@ -13,15 +13,11 @@ PACKAGE=notmuch
|
|||
IS_GIT=$(shell if [ -d .git ] ; then echo yes ; else echo no; fi)
|
||||
|
||||
VERSION:=$(shell cat ${srcdir}/version)
|
||||
ifneq ($(MAKECMDGOALS),release)
|
||||
ifneq ($(MAKECMDGOALS),release-message)
|
||||
ifneq ($(MAKECMDGOALS),pre-release)
|
||||
ifeq ($filter release release-message pre-release,$(MAKECMDGOALS),)
|
||||
ifeq ($(IS_GIT),yes)
|
||||
VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
UPSTREAM_TAG=$(subst ~,_,$(VERSION))
|
||||
DEB_TAG=debian/$(UPSTREAM_TAG)-1
|
||||
|
|
Loading…
Reference in a new issue