Browse Source

Correct version regex in Makefile, add git as dependency

pull/2938/head
darosior 5 years ago
committed by Rusty Russell
parent
commit
f98ae2d1d3
  1. 2
      Makefile
  2. 2
      README.md
  3. 4
      doc/INSTALL.md

2
Makefile

@ -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")

2
README.md

@ -60,7 +60,7 @@ For the impatient here's the gist of it for Ubuntu and Debian:
sudo apt-get install -y \
autoconf automake build-essential git libtool libgmp-dev \
libsqlite3-dev python python3 net-tools zlib1g-dev libsodium-dev \
python3-mako
python3-mako git
git clone https://github.com/ElementsProject/lightning.git
cd lightning
./configure

4
doc/INSTALL.md

@ -38,7 +38,8 @@ Get dependencies:
sudo apt-get update
sudo apt-get install -y \
autoconf automake build-essential git libtool libgmp-dev \
libsqlite3-dev python python3 python3-mako net-tools zlib1g-dev libsodium-dev
libsqlite3-dev python python3 python3-mako net-tools zlib1g-dev libsodium-dev \
git
If you don't have Bitcoin installed locally you'll need to install that
as well:
@ -85,6 +86,7 @@ $ sudo dnf update -y && \
sudo dnf install -y \
asciidoc \
clang \
git \
gmp-devel \
libsq3-devel \
python2-devel \

Loading…
Cancel
Save