mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
Makefile: make default correctly build $(ALL_PROGRAMS) and $(ALL_TEST_PROGRAMS).
We can't reference the variables until after they're set, so hence the two-step. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
4f5e7a4d92
commit
dfa062b06a
12
Makefile
12
Makefile
@ -136,7 +136,7 @@ CFLAGS = $(CWARNFLAGS) $(CDEBUGFLAGS) -I $(CCANDIR) $(EXTERNAL_INCLUDE_FLAGS) -I
|
||||
|
||||
LDLIBS = -lgmp -lsqlite3 $(COVFLAGS)
|
||||
|
||||
default: $(ALL_TEST_PROGRAMS) cli/lightning-cli doc-all
|
||||
default: all-programs all-test-programs
|
||||
|
||||
include external/Makefile
|
||||
include bitcoin/Makefile
|
||||
@ -256,13 +256,9 @@ update-ccan:
|
||||
echo CCAN version: `git -C ../ccan describe` >> ccan/README
|
||||
$(RM) -r ccan.old
|
||||
|
||||
update-secp256k1:
|
||||
mv secp256k1 secp256k1.old
|
||||
cp -a ../secp256k1 secp256k1
|
||||
rm -rf secp256k1/.git
|
||||
grep -v '^secp256k1 version:' secp256k1.old/README > secp256k1/README
|
||||
echo secp256k1 version: `git -C ../secp256k1 describe 2>/dev/null || git -C ../secp256k1 show HEAD --format=%H` >> secp256k1/README
|
||||
$(RM) -r secp256k1.old
|
||||
# Now ALL_PROGRAMS is fully populated, we can expand it.
|
||||
all-programs: $(ALL_PROGRAMS)
|
||||
all-test-programs: $(ALL_TEST_PROGRAMS)
|
||||
|
||||
distclean: clean
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user