Browse files

build: only consider directories containing a Makefile, fixes compila…

…tion crashes if a file or empty directory exists in modules/, applications/ etc.

git-svn-id: ab181a69-ba2e-0410-a84d-ff88ab4c47bc
  • Loading branch information...
1 parent 6dc3409 commit 2c17c41306206c60ab6362db26cd476673a79634 jow committed Jan 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Makefile
@@ -3,6 +3,8 @@ include build/
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

0 comments on commit 2c17c41

Please sign in to comment.