diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-25 16:46:37 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-25 16:46:37 +0200 |
commit | a11853a6753a872beb0fe7a9cfe9362b909fd9fa (patch) | |
tree | ad594d768e612a22f0087fc752d0db5cf181bae5 | |
parent | 62d99f3a8109cb297aa9d83f5e0609610839ec45 (diff) | |
download | netlink-notify-a11853a6753a872beb0fe7a9cfe9362b909fd9fa.tar.gz netlink-notify-a11853a6753a872beb0fe7a9cfe9362b909fd9fa.tar.zst |
add version fallback
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7,7 +7,12 @@ INSTALL := install RM := rm CFLAGS += -O2 -Wall -Werror CFLAGS += $(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.6.2 +endif all: netlink-notify icons README.html |