diff --git a/Makefile b/Makefile index cbba9b05..4888b8a5 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ check: setup: .git/hooks/pre-commit @cp bin/pre-commit.hook .git/hooks/pre-commit -SUBDIRS := $(shell find -maxdepth 2 -mindepth 2 -name 'Makefile' -printf '%h/.\n') +SUBDIRS := $(dir $(wildcard */Makefile)) TARGETS := install clean test lint # whatever else, but must not contain '/' # foo/.all bar/.all foo/.clean bar/.clean