HLRS-OpenMP-GPU-2024/03-cut-offs/Makefile

15 lines
352 B
Makefile
Raw Permalink Normal View History

2024-04-26 13:47:20 +00:00
ALL_RECURSIVE=all-recursive clean-recursive
DIRS=$(shell ls -d */ | sed '/_/d' 2>/dev/null | sed '/bin/d' 2>/dev/null)
all: all-recursive
clean: clean-recursive
$(ALL_RECURSIVE):
@failcom='exit 1';\
target=`echo $@ | sed s/-recursive//`; \
for subdir in $(DIRS); do \
(cd $$subdir && $(MAKE) $$target) || eval $$failcom; \
done;