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