nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 82b9667e4510aee4994dc2e7f28217a644571cdb
parent dc1254eea5867bdf52d7618e2848c55324ed7516
Author: Rusty Russell <rusty@rustcorp.com.au>
Date:   Sat, 17 Aug 2024 14:57:12 +0930

Makefile: rule to update ccan/ subdir.

Copies files from ../ccan.  You run this manually when you want something:
adding CCAN_NEW=xxx adds the ccan module xxx.

Usually you run `git status` after this to see what changed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>


Diffstat:
MMakefile | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -192,4 +192,16 @@ testdata/db/.dir: test: test.c $(DEPS) testdata/db/.dir $(CC) $(CFLAGS) test.c $(LDS) $(LDFLAGS) -o $@ -.PHONY: tags clean fake +# Call this with CCAN_NEW="mod1 mod2..." to add new ccan modules. +update-ccan: + mv ccan ccan.old + DIR=$$(pwd)/ccan; cd ../ccan && ./tools/create-ccan-tree -a $$DIR `cd $$DIR.old/ccan && find * -name _info | sed s,/_info,, | LC_ALL=C sort` $(CCAN_NEW) + mkdir -p ccan/tools/configurator + cp ../ccan/tools/configurator/configurator.c ../ccan/doc/configurator.1 ccan/tools/configurator/ + $(MAKE) src/config.h + grep -v '^CCAN version:' ccan.old/README > ccan/README + echo CCAN version: `git -C ../ccan describe` >> ccan/README + $(RM) -r ccan/ccan/hash/ ccan/ccan/tal/talloc/ # Unnecessary deps + $(RM) -r ccan.old + +.PHONY: tags clean fake update-ccan