]> Lady’s Gitweb - Shushe/commitdiff
Quote source and include directories
authorLady <redacted>
Thu, 18 Jan 2024 15:17:02 +0000 (10:17 -0500)
committerLady <redacted>
Thu, 18 Jan 2024 15:17:02 +0000 (10:17 -0500)
Special characters should be allowed here, too.

GNUmakefile

index ab8e828b23917c7e45be1c5a76df49df3bead98b..cf2a538d312ee273432dc5757a55035fd6032fe2 100644 (file)
@@ -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),)
This page took 0.027932 seconds and 4 git commands to generate.