projects-dir.mk: Fill PROJECTS by */Makefile

Make the PROJECTS variable default to all subdirectories containing
Makefiles.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-17 20:45:11 +00:00
commit aef7edf737

View file

@ -26,7 +26,7 @@ ifneq ($(wildcard projects.txt),)
# TODO: this could be nicer
CVS_PROJECTS = $(PROJECTS)
else
PROJECTS ?= $(shell ls -d */CVS */.git 2>/dev/null | sed 's%/[^/]*%%')
PROJECTS ?= $(shell ls -d */Makefile 2>/dev/null | sed 's%/[^/]*%%')
CVS_PROJECTS = $(filter $(dir $(wildcard */CVS)),$(PROJECTS))
endif