bb0f82d5aa
* configure (HEX2): Check for hex2 from MESCC_tools. * INSTALL: Mention it. * GNUmakefile (SUBDIRS): Add stage0. * make/check-cc.make: New file. * make/check.make: Remove CC-not-empty guard. * scaffold/scaffold.make: Update CC check targets.
17 lines
295 B
Makefile
17 lines
295 B
Makefile
ifeq ($(TEST),)
|
|
TEST:=$(TARGET)-check
|
|
$(TEST): EXPECT:=$(EXPECT)
|
|
$(TEST): SHELL:=$(SHELL)
|
|
$(TEST): $(OUT)/$(TARGET)
|
|
@export SHELL=$(SHELL)
|
|
ifeq ($(EXPECT),)
|
|
$<
|
|
else
|
|
$<; r=$$?; [ $$r = $(EXPECT) ]
|
|
endif
|
|
endif
|
|
CHECK+=$(TEST)
|
|
$(TEST): TEST:=$(TEST)
|
|
$(DIR)-check: $(TEST)
|
|
include make/reset.make
|