Skip to content

Commit 3c89231

Browse files
committed
check-bolt: move to devtools, clean up tools/
And leave $(TOOLS) as user-visible tools. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 89c1b06 commit 3c89231

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ CHECK_BOLT_PREFIX=--prefix="BOLT-$(BOLTVERSION)"
552552
endif
553553

554554
# Any mention of BOLT# must be followed by an exact quote, modulo whitespace.
555-
bolt-check/%: % bolt-precheck tools/check-bolt
556-
@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
555+
bolt-check/%: % bolt-precheck devtools/check-bolt
556+
@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
557557

558558
LOCAL_BOLTDIR=.tmp.lightningrfc
559559

@@ -565,7 +565,7 @@ check-source-bolt: $(ALL_NONGEN_SRCFILES:%=bolt-check/%)
565565
check-whitespace/%: %
566566
@if grep -Hn '[ ]$$' $<; then echo Extraneous whitespace found >&2; exit 1; fi
567567

568-
check-whitespace: check-whitespace/Makefile check-whitespace/tools/check-bolt.c $(ALL_NONGEN_SRCFILES:%=check-whitespace/%)
568+
check-whitespace: check-whitespace/Makefile check-whitespace/devtools/check-bolt.c $(ALL_NONGEN_SRCFILES:%=check-whitespace/%)
569569

570570
check-spelling:
571571
@tools/check-spelling.sh
@@ -943,7 +943,7 @@ TESTBINS = \
943943
# version of `lightningd` leading to bogus results. We bundle up all
944944
# built artefacts here, and will unpack them on the tester (overlaying
945945
# on top of the checked out repo as if we had just built it in place).
946-
testpack.tar.bz2: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS) $(PY_PLUGINS) $(MAN1PAGES) $(MAN5PAGES) $(MAN7PAGES) $(MAN8PAGES) $(DOC_DATA) config.vars $(TESTBINS) $(DEVTOOLS)
946+
testpack.tar.bz2: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS) $(PY_PLUGINS) $(MAN1PAGES) $(MAN5PAGES) $(MAN7PAGES) $(MAN8PAGES) $(DOC_DATA) config.vars $(TESTBINS) $(DEVTOOLS) $(TOOLS)
947947
tar -caf $@ $^
948948

949949
uninstall:

devtools/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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
1+
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
22
ifeq ($(HAVE_SQLITE3),1)
33
DEVTOOLS += devtools/checkchannels
44
endif
File renamed without changes.

tools/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/make
2-
TOOLS := tools/lightning-hsmtool tools/check-bolt
2+
TOOLS := tools/lightning-hsmtool
33
TOOLS_SRC := $(TOOLS:=.c)
44
TOOLS_OBJ := $(TOOLS_SRC:.c=.o)
55

@@ -14,12 +14,12 @@ tools/headerversions: $(FORCE) tools/headerversions.o libccan.a
1414
@trap "rm -f $@.tmp.$$$$" EXIT; $(LINK.o) tools/headerversions.o libccan.a $(LOADLIBES) $(LDLIBS) -o $@.tmp.$$$$ && mv -f $@.tmp.$$$$ $@
1515

1616
tools/headerversions.o: ccan/config.h
17-
tools/check-bolt: tools/check-bolt.o libcommon.a
1817
tools/lightning-hsmtool: tools/lightning-hsmtool.o libcommon.a
1918

2019
clean: tools-clean
2120

2221
tools-clean:
22+
$(RM) $(TOOLS) $(TOOLS_OBJ)
2323
$(RM) tools/headerversions
2424
$(RM) tools/headerversions.o
2525

0 commit comments

Comments
 (0)