diff options
author | Christian Hesse <mail@eworm.de> | 2013-09-25 16:24:25 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-09-25 16:24:25 +0200 |
commit | a3d2a83a1a40d3798b5ae660d3b220211b9fddc9 (patch) | |
tree | 48967c6b2269fad03ff4a1203eda34c16474a2e0 /Makefile | |
parent | 2b1fb0836721c05cb936800907d4932a88c4ad13 (diff) | |
download | cqrlogo-a3d2a83a1a40d3798b5ae660d3b220211b9fddc9.tar.gz cqrlogo-a3d2a83a1a40d3798b5ae660d3b220211b9fddc9.tar.zst |
add version fallback
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -13,7 +13,12 @@ CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libpng) \ $(shell pkg-config --cflags --libs zlib) \ $(shell pkg-config --cflags --libs libqrencode) -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.3.2 +endif all: cqrlogo README.html cqrlogo.png |