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:
parent
a4b9126070
commit
0b547cf6b4
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue