mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
make: fail build if git isn't present
git is needed to generate version information Add a sanity check so that the build don't continue with an empty VERSION. This is useful for sandboxed build where we might have forgot to include git. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
b5423775e2
commit
a01342a66a
5
Makefile
5
Makefile
@ -1,6 +1,11 @@
|
||||
#! /usr/bin/make
|
||||
VERSION_NAME=Principled Opposition to SegWit
|
||||
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7)
|
||||
|
||||
ifeq ($(VERSION),)
|
||||
$(error "ERROR: git is required for generating version information")
|
||||
endif
|
||||
|
||||
DISTRO=$(shell lsb_release -is 2>/dev/null || echo unknown)-$(shell lsb_release -rs 2>/dev/null || echo unknown)
|
||||
PKGNAME = c-lightning
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user