mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
Makefile: update-ccan: new target.
Hacky, but syncs up ccan repository. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
10
Makefile
10
Makefile
@@ -46,6 +46,16 @@ $(CCAN_OBJS) $(HELPER_OBJS) $(PROGRAM_OBJS) $(BITCOIN_OBJS): ccan/config.h
|
|||||||
ccan/config.h: ccan/tools/configurator/configurator
|
ccan/config.h: ccan/tools/configurator/configurator
|
||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
|
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,, | sort` $(CCAN_NEW)
|
||||||
|
mkdir -p ccan/tools/configurator
|
||||||
|
cp ../ccan/tools/configurator/configurator.c ccan/tools/configurator/
|
||||||
|
$(MAKE) ccan/config.h
|
||||||
|
grep -v '^CCAN version:' ccan.old/README > ccan/README
|
||||||
|
echo CCAN version: `git -C ../ccan describe` >> ccan/README
|
||||||
|
$(RM) -r ccan.old
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(RM) lightning.pb-c.c lightning.pb-c.h ccan/config.h
|
$(RM) lightning.pb-c.c lightning.pb-c.h ccan/config.h
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user