diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-25 16:45:40 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-25 16:45:40 +0200 |
commit | e2af436724389aa173019ba7033daac3b098bb86 (patch) | |
tree | 7961225141c34e092fc81c115f8009083774acbe | |
parent | 87bd704cbfb9d5b191d6a0f73e9f022bccf812db (diff) | |
download | udev-block-notify-e2af436724389aa173019ba7033daac3b098bb86.tar.gz udev-block-notify-e2af436724389aa173019ba7033daac3b098bb86.tar.zst |
add version fallback
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |