Files
gprbuild/examples/Makefile
Nicolas Boulenguez 5ee0edb066 examples/Makefile: show all PATH manipulations explicitly
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.
2022-08-06 18:13:41 +02:00

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)