From a3d2a83a1a40d3798b5ae660d3b220211b9fddc9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 25 Sep 2013 16:24:25 +0200 Subject: add version fallback --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 680f5eb..0e6bc7d 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-54-g00ecf