build: only consider directories containing a Makefile, fixes compilation crashes if a file or empty directory exists in modules/, applications/ etc.

This commit is contained in:
Jo-Philipp Wich 2012-01-05 19:21:07 +00:00
parent a4b9126070
commit 0b547cf6b4

View file

@ -3,6 +3,8 @@ include build/config.mk
MODULES = contrib/* applications/* libs/* modules/* themes/* i18n/*
OS:=$(shell uname)
MODULES:=$(foreach item,$(wildcard $(MODULES)),$(if $(realpath $(wildcard $(item)/Makefile)),$(item)))
export OS
.PHONY: all build gccbuild luabuild clean host gcchost luahost hostcopy hostclean