From: Lady Date: Thu, 18 Jan 2024 15:17:02 +0000 (-0500) Subject: Quote source and include directories X-Git-Tag: 0.4.1~7 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/a2a37ad84293ab4880a23a816f7eeba60083806a?hp=dd06ce4e3cff56b8258466099867b0b9de8382da Quote source and include directories Special characters should be allowed here, too. --- diff --git a/GNUmakefile b/GNUmakefile index ab8e828..cf2a538 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -225,11 +225,11 @@ override pathenc = $(foreach path,$1,$(subst $(space),/,$(call perenc,$(subst /, # (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. -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),)