aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-09-25 16:48:06 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-09-25 16:48:06 +0200
commit6cb74f4a135b3371a9b840aaf728eadfa549e79d (patch)
tree700c9651a42d61631cefeb97fda9c9eb36fee130
parent5dea0c00f0f3485bfbf5b87c5b9c24856f6946b2 (diff)
downloadmpd-notification-6cb74f4a135b3371a9b840aaf728eadfa549e79d.tar.gz
mpd-notification-6cb74f4a135b3371a9b840aaf728eadfa549e79d.tar.zst
add version fallback
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 36b3bac..a1b0bd1 100644
--- a/Makefile
+++ b/Makefile
@@ -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