blob: f0299668a5d11889c5fe8e8206935370126ab3e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
MAKEFLAGS += --no-print-directory
# `make V=1' to have verbose output
ifneq ($(V),1)
Q = @
endif
SUITES := $(wildcard suite_*)
SUITES_CLEAN := $(patsubst %, %_clean_, $(SUITES))
.PHONY: all clean $(SUITES) $(SUITES_CLEAN)
all: $(SUITES)
clean: $(SUITES_CLEAN)
$(SUITES): # FIXME link to mars library, so it gets build first
@echo Building in $@
$(Q)$(MAKE) -C $@
$(SUITES_CLEAN):
@echo Cleaning in $(subst _clean_,,$@)
$(Q)$(MAKE) -C $(subst _clean_,,$@) clean
# Use `make print-VARIABLE' to print the value of $(VARIABLE)
print-%:
@echo $* = "$($*)"
|