Correct version regex in Makefile, add git as dependency

This commit is contained in:
darosior
2019-08-09 00:35:52 +02:00
committed by Rusty Russell
parent 5dbff077c2
commit f98ae2d1d3
3 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#! /usr/bin/make
# 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,.*/clightning-\(v[0-9.rc]*\)$$,\1,p')
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's,.*/lightning-\([0-9.rc]*\)$$,\1,p')
ifeq ($(VERSION),)
$(error "ERROR: git is required for generating version information")