mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
1f447688bc
Not just in daemon. This fixes 'make check' when it tries to run 'make wire-tests' Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
504 B
Makefile
17 lines
504 B
Makefile
# Included for one dir up.
|
|
|
|
# Note that these actually #include everything they need, except ccan/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
|
|
BITCOIN_TEST_SRC := $(wildcard bitcoin/test/run-*.c)
|
|
BITCOIN_TEST_OBJS := $(BITCOIN_TEST_SRC:.c=.o)
|
|
BITCOIN_TEST_PROGRAMS := $(BITCOIN_TEST_OBJS:.o=)
|
|
|
|
$(BITCOIN_TEST_PROGRAMS): $(CCAN_OBJS)
|
|
|
|
$(BITCOIN_TEST_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(BITCOIN_SRC)
|
|
|
|
check: bitcoin-tests
|
|
|
|
bitcoin-tests: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
|