aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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