|
@ -1,7 +1,7 @@ |
|
|
#! /usr/bin/make
|
|
|
#! /usr/bin/make
|
|
|
|
|
|
|
|
|
# Extract version from git, or if we're from a zipfile, use dirname
|
|
|
# Extract version from git, or if we're from a zipfile, use dirname
|
|
|
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc]*\)$$|\1|gp') |
|
|
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc\-]*\)$$|\1|gp') |
|
|
|
|
|
|
|
|
ifeq ($(VERSION),) |
|
|
ifeq ($(VERSION),) |
|
|
$(error "ERROR: git is required for generating version information") |
|
|
$(error "ERROR: git is required for generating version information") |
|
|