diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-25 16:48:06 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-25 16:48:06 +0200 |
commit | 6cb74f4a135b3371a9b840aaf728eadfa549e79d (patch) | |
tree | 700c9651a42d61631cefeb97fda9c9eb36fee130 | |
parent | 5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2 (diff) | |
download | mpd-notification-6cb74f4a135b3371a9b840aaf728eadfa549e79d.tar.gz mpd-notification-6cb74f4a135b3371a9b840aaf728eadfa549e79d.tar.zst |
add version fallback
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -8,7 +8,12 @@ RM := rm CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libmpdclient) \ $(shell pkg-config --cflags --libs libnotify) -VERSION = $(shell git describe --tags --long) +VERSION := $(shell git describe --tags --long 2>/dev/null) +# this is just a fallback in case you do not use git but downloaded +# a release tarball... +ifeq ($(VERSION),) +VERSION := 0.4.2 +endif all: mpd-notification README.html |