forked from TASC/HLRS-OpenMP-GPU-2024
14 lines
346 B
Makefile
14 lines
346 B
Makefile
ALL_RECURSIVE=all-recursive clean-recursive
|
|
|
|
DIRS=$(shell ls -d *-* | sed '/_/d' 2>/dev/null)
|
|
|
|
all: $(CONFIG) all-recursive
|
|
clean: $(CONFIG) clean-recursive
|
|
|
|
$(ALL_RECURSIVE):
|
|
@failcom='exit 1';\
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
for subdir in $(DIRS); do \
|
|
(cd $$subdir && $(MAKE) $$target) || eval $$failcom; \
|
|
done;
|
|
|