mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-18 04:39:29 +00:00
chore: config update (#3510)
This commit is contained in:
parent
07e11899b0
commit
d3f2bd010e
10
Makefile
10
Makefile
@ -53,15 +53,17 @@ endif
|
|||||||
# default target, because it's the first one that doesn't start with '.'
|
# default target, because it's the first one that doesn't start with '.'
|
||||||
all: | wakunode2 example2 chat2 chat2bridge libwaku
|
all: | wakunode2 example2 chat2 chat2bridge libwaku
|
||||||
|
|
||||||
TEST_FILE := $(word 2,$(MAKECMDGOALS))
|
test_file := $(word 2,$(MAKECMDGOALS))
|
||||||
TEST_NAME := $(wordlist 3,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
|
define test_name
|
||||||
|
$(shell echo '$(MAKECMDGOALS)' | cut -d' ' -f3-)
|
||||||
|
endef
|
||||||
|
|
||||||
test:
|
test:
|
||||||
ifeq ($(strip $(TEST_FILE)),)
|
ifeq ($(strip $(test_file)),)
|
||||||
$(MAKE) testcommon
|
$(MAKE) testcommon
|
||||||
$(MAKE) testwaku
|
$(MAKE) testwaku
|
||||||
else
|
else
|
||||||
$(MAKE) compile-test $(TEST_FILE) $(TEST_NAME)
|
$(MAKE) compile-test TEST_FILE="$(test_file)" TEST_NAME="$(call test_name)"
|
||||||
endif
|
endif
|
||||||
# this prevents make from erroring on unknown targets like "Index"
|
# this prevents make from erroring on unknown targets like "Index"
|
||||||
%:
|
%:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user