Skip to content

Commit ad320a1

Browse files
ndechesneandersson
authored andcommitted
version: set to 'unknown-version' if unable to use git describe
If for any reasons git describe does not work (git not installed, or not running from a git workspace), set VERSION to unknown-version. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@oss.qualcomm.com>
1 parent 8718752 commit ad320a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
QDL := qdl
22
RAMDUMP := qdl-ramdump
3-
GITREF := $(shell git describe --dirty --always --tags)
3+
GITREF := $(or $(shell git describe --dirty --always --tags), "unknown-version")
44

55
CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0 libusb-1.0`
66
LDFLAGS += `pkg-config --libs libxml-2.0 libusb-1.0`

0 commit comments

Comments
 (0)