fix: PROJECTS was empty while rebuilding the all target

replace $(wildcard function by ls, and now it's fixed

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-02-27 10:39:03 +00:00
commit 6a31b13b02

View file

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