Special characters should be allowed here, too.
# (overridable) Collect all of the applicable includes from the
# includes directory.
# (overridable) Collect all of the applicable includes from the
# includes directory.
-sourceincludes := $(shell $(FIND) $(FINDOPTS) $(INCLUDEDIR) -type f '(' $(FINDRULES) ')')
+sourceincludes := $(shell $(FIND) $(FINDOPTS) $(foreach dir,$(INCLUDEDIR),$(call quote,$(dir))) -type f '(' $(FINDRULES) ')')
# (overridable) Collect all of the applicable source files from the
# source directory, removing any which are also includes.
# (overridable) Collect all of the applicable source files from the
# source directory, removing any which are also includes.
-sourcefiles := $(filter-out $(sourceincludes),$(shell $(FIND) $(FINDOPTS) $(SRCDIR) -type f '(' $(FINDRULES) ')'))
+sourcefiles := $(filter-out $(sourceincludes),$(shell $(FIND) $(FINDOPTS) $(foreach dir,$(SRCDIR),$(call quote,$(dir))) -type f '(' $(FINDRULES) ')'))
ifdef GIT
ifneq ($(wildcard $(THISDIR)/.git),)
ifdef GIT
ifneq ($(wildcard $(THISDIR)/.git),)