From 98910c03f2ab2c19153189eed48a8f95576d903e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 11 Nov 2016 09:12:39 +1030 Subject: [PATCH] check-source: add version to BOLTDIR. This allows us to have different rfcs in different branches, which we're going to need soon. Signed-off-by: Rusty Russell --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 66d83ae18..cf19a2ba6 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../lightning-rfc/ +BOLTVERSION := master # If you don't have (working) valgrind. #NO_VALGRIND := 1 @@ -218,7 +219,7 @@ check-makefile: check-daemon-makefile # Any mention of BOLT# must be followed by an exact quote, modulo whitepace. check-source-bolt: check-bolt - @if [ ! -d $(BOLTDIR) ]; then echo Not checking BOLT references: BOLTDIR $(BOLTDIR) does not exist >&2; else ./check-bolt $(BOLTDIR) $(CORE_SRC) $(BITCOIN_SRC) $(DAEMON_SRC) $(CORE_HEADERS) $(BITCOIN_HEADERS) $(DAEMON_HEADERS) $(TEST_PROGRAMS:=.c); fi + @if [ ! -d $(BOLTDIR) ]; then echo Not checking BOLT references: BOLTDIR $(BOLTDIR) does not exist >&2; else rm -rf .tmp.lightningrfc; git clone -q -b $(BOLTVERSION) $(BOLTDIR) .tmp.lightningrfc && ./check-bolt .tmp.lightningrfc $(CORE_SRC) $(BITCOIN_SRC) $(DAEMON_SRC) $(CORE_HEADERS) $(BITCOIN_HEADERS) $(DAEMON_HEADERS) $(TEST_PROGRAMS:=.c); fi check-bolt: check-bolt.o $(CCAN_OBJS)