From: Jo-Philipp Wich Date: Thu, 5 Jan 2012 19:21:07 +0000 (+0000) Subject: build: only consider directories containing a Makefile, fixes compilation crashes... X-Git-Tag: 0.11.0~1191 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0b547cf6b450113b8bb6467c9a17da882896d489;p=oweals%2Fluci.git build: only consider directories containing a Makefile, fixes compilation crashes if a file or empty directory exists in modules/, applications/ etc. --- diff --git a/Makefile b/Makefile index 21c88b2db..efccd79d0 100644 --- a/Makefile +++ b/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