From e2af436724389aa173019ba7033daac3b098bb86 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 25 Sep 2013 16:45:40 +0200 Subject: add version fallback --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7ade56a..3e82036 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,12 @@ RM := rm CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libudev) \ $(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.7.1 +endif all: udev-block-notify README.html -- cgit v1.2.3-70-g09d2