mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00

The 22 integration tests came with a mix of removing only ROOT (generated/OS/BUILD/MODEL) or GENERATED (generated) subdirs as part of their `make clean`. And running `make clean` in the druntime dir only cleaned up the default BUILD=release variant, while running `make unittest` without explicit BUILD type includes running the integration tests in both debug and release variants. Streamline/fix this to always cleaning up ROOT, and running `make clean` in both variants when running druntime's `make clean`.
17 lines
312 B
Makefile
17 lines
312 B
Makefile
include ../common.mak
|
|
|
|
TESTS:=test_aa
|
|
|
|
.PHONY: all clean
|
|
all: $(addprefix $(ROOT)/,$(addsuffix .done,$(TESTS)))
|
|
|
|
$(ROOT)/%.done: $(ROOT)/%$(DOTEXE)
|
|
@echo Testing $*
|
|
$(QUIET)$(TIMELIMIT)$(ROOT)/$* $(RUN_ARGS)
|
|
@touch $@
|
|
|
|
$(ROOT)/%$(DOTEXE): $(SRC)/%.d
|
|
$(QUIET)$(DMD) $(DFLAGS) -of$@ $<
|
|
|
|
clean:
|
|
rm -rf $(ROOT)
|