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)