mirror of
https://github.com/AdaCore/gprbuild.git
synced 2026-02-12 12:30:13 -08:00
Each change is local to a subshell, visible in log. When the path is prefixed, make that clear by hiding the previous value in the log.
21 lines
703 B
Makefile
21 lines
703 B
Makefile
%:
|
|
@echo 'Unknown target. Usage:'
|
|
@echo 'make [all] build all examples'
|
|
@echo 'make run run all examples'
|
|
@echo 'make clean clean all examples'
|
|
@echo 'make GPRBUILDFLAGS=-v add options for gprbuild'
|
|
@echo 'make ada_cpp/all matrix/all build two specific examples'
|
|
|
|
subdirectories := $(wildcard */)
|
|
targets_all := $(subdirectories:=all)
|
|
targets_clean := $(subdirectories:=clean)
|
|
targets_run := $(subdirectories:=run)
|
|
|
|
all : $(targets_all)
|
|
clean: $(targets_clean)
|
|
run : $(targets_run)
|
|
$(targets_all) $(targets_clean) $(targets_run):
|
|
$(MAKE) -C$(subst /, ,$@)
|
|
|
|
.PHONY: all clean run $(targets_all) $(targets_clean) $(targets_run)
|