diff --git a/Makefile b/Makefile index 361216e30..58d0ae5df 100644 --- a/Makefile +++ b/Makefile @@ -552,8 +552,8 @@ CHECK_BOLT_PREFIX=--prefix="BOLT-$(BOLTVERSION)" endif # Any mention of BOLT# must be followed by an exact quote, modulo whitespace. -bolt-check/%: % bolt-precheck tools/check-bolt - @if [ -d .tmp.lightningrfc ]; then tools/check-bolt $(CHECK_BOLT_PREFIX) .tmp.lightningrfc $<; else echo "Not checking BOLTs: BOLTDIR $(BOLTDIR) does not exist" >&2; fi +bolt-check/%: % bolt-precheck devtools/check-bolt + @if [ -d .tmp.lightningrfc ]; then devtools/check-bolt $(CHECK_BOLT_PREFIX) .tmp.lightningrfc $<; else echo "Not checking BOLTs: BOLTDIR $(BOLTDIR) does not exist" >&2; fi LOCAL_BOLTDIR=.tmp.lightningrfc @@ -565,7 +565,7 @@ check-source-bolt: $(ALL_NONGEN_SRCFILES:%=bolt-check/%) check-whitespace/%: % @if grep -Hn '[ ]$$' $<; then echo Extraneous whitespace found >&2; exit 1; fi -check-whitespace: check-whitespace/Makefile check-whitespace/tools/check-bolt.c $(ALL_NONGEN_SRCFILES:%=check-whitespace/%) +check-whitespace: check-whitespace/Makefile check-whitespace/devtools/check-bolt.c $(ALL_NONGEN_SRCFILES:%=check-whitespace/%) check-spelling: @tools/check-spelling.sh @@ -943,7 +943,7 @@ TESTBINS = \ # version of `lightningd` leading to bogus results. We bundle up all # built artefacts here, and will unpack them on the tester (overlaying # on top of the checked out repo as if we had just built it in place). -testpack.tar.bz2: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS) $(PY_PLUGINS) $(MAN1PAGES) $(MAN5PAGES) $(MAN7PAGES) $(MAN8PAGES) $(DOC_DATA) config.vars $(TESTBINS) $(DEVTOOLS) +testpack.tar.bz2: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS) $(PY_PLUGINS) $(MAN1PAGES) $(MAN5PAGES) $(MAN7PAGES) $(MAN8PAGES) $(DOC_DATA) config.vars $(TESTBINS) $(DEVTOOLS) $(TOOLS) tar -caf $@ $^ uninstall: diff --git a/devtools/Makefile b/devtools/Makefile index a61f3c3d0..b7c487403 100644 --- a/devtools/Makefile +++ b/devtools/Makefile @@ -1,4 +1,4 @@ -DEVTOOLS := devtools/bolt11-cli devtools/decodemsg devtools/onion devtools/dump-gossipstore devtools/gossipwith devtools/create-gossipstore devtools/mkcommit devtools/mkfunding devtools/mkclose devtools/mkgossip devtools/mkencoded devtools/mkquery devtools/lightning-checkmessage devtools/topology devtools/route devtools/bolt12-cli devtools/encodeaddr devtools/features devtools/fp16 devtools/rune devtools/gossmap-compress devtools/bip137-verifysignature devtools/convert-gossmap +DEVTOOLS := devtools/bolt11-cli devtools/decodemsg devtools/onion devtools/dump-gossipstore devtools/gossipwith devtools/create-gossipstore devtools/mkcommit devtools/mkfunding devtools/mkclose devtools/mkgossip devtools/mkencoded devtools/mkquery devtools/lightning-checkmessage devtools/topology devtools/route devtools/bolt12-cli devtools/encodeaddr devtools/features devtools/fp16 devtools/rune devtools/gossmap-compress devtools/bip137-verifysignature devtools/convert-gossmap devtools/check-bolt ifeq ($(HAVE_SQLITE3),1) DEVTOOLS += devtools/checkchannels endif diff --git a/tools/check-bolt.c b/devtools/check-bolt.c similarity index 100% rename from tools/check-bolt.c rename to devtools/check-bolt.c diff --git a/tools/Makefile b/tools/Makefile index 74656a304..df03ada44 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,5 +1,5 @@ #! /usr/bin/make -TOOLS := tools/lightning-hsmtool tools/check-bolt +TOOLS := tools/lightning-hsmtool TOOLS_SRC := $(TOOLS:=.c) TOOLS_OBJ := $(TOOLS_SRC:.c=.o) @@ -14,12 +14,12 @@ tools/headerversions: $(FORCE) tools/headerversions.o libccan.a @trap "rm -f $@.tmp.$$$$" EXIT; $(LINK.o) tools/headerversions.o libccan.a $(LOADLIBES) $(LDLIBS) -o $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@ tools/headerversions.o: ccan/config.h -tools/check-bolt: tools/check-bolt.o libcommon.a tools/lightning-hsmtool: tools/lightning-hsmtool.o libcommon.a clean: tools-clean tools-clean: + $(RM) $(TOOLS) $(TOOLS_OBJ) $(RM) tools/headerversions $(RM) tools/headerversions.o