mirror of
https://github.com/mirror/make.git
synced 2024-12-27 13:20:34 +08:00
* Basic.mk.template: Allow arguments to the check target.
This commit is contained in:
parent
1fd0bfaf1e
commit
6761122be0
@ -88,8 +88,9 @@ COMPILE.cmd = $(CC) $(extra_CFLAGS) $(CFLAGS) $(extra_CPPFLAGS) $(CPPFLAGS) $(TA
|
||||
# $(call LINK.cmd,<objectlist>)
|
||||
LINK.cmd = $(LD) $(extra_LDFLAGS) $(LDFLAGS) $(TARGET_ARCH) $1 $(LDLIBS) $(LINK_OUTPUT)
|
||||
|
||||
# $(CHECK.cmd)
|
||||
# $(CHECK.cmd) $(CHECK.args)
|
||||
CHECK.cmd = cd $(SRCDIR)/tests && ./run_make_tests -make $(shell cd $(<D) && pwd)/$(<F)
|
||||
CHECK.args ?=
|
||||
|
||||
# $(call MKDIR.cmd,<dirlist>)
|
||||
MKDIR.cmd = mkdir -p $1
|
||||
@ -123,7 +124,7 @@ $(OBJDIRS):
|
||||
$(call MKDIR.cmd,$@)
|
||||
|
||||
check:
|
||||
$(CHECK.cmd)
|
||||
$(CHECK.cmd) $(CHECK.args)
|
||||
|
||||
clean:
|
||||
$(CLEANSPACE)
|
||||
|
Loading…
Reference in New Issue
Block a user