diff --git a/Makefile b/Makefile index 912ffb3c9..3457301e8 100644 --- a/Makefile +++ b/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