]> Lady’s Gitweb - Shushe/commitdiff
Eliminate unnecessary use of cat
authorLady <redacted>
Sun, 7 Jul 2024 04:37:28 +0000 (00:37 -0400)
committerLady <redacted>
Thu, 11 Jul 2024 01:45:58 +0000 (21:45 -0400)
Input redirection works just as well here.

GNUmakefile

index 931f32dde15f2e32e348ef24648d551567e8023f..952aebd6f4d67ef5681072377004e94f65994832 100644 (file)
@@ -424,7 +424,7 @@ override fileuri = $(foreach file,$1,$(or $(patsubst $(file)|%,%,$(filter $(file
 
 ifneq ($(wildcard $(BUILDDIR)/dependencies),)
 # Pair each file with a list of dependencies for it.
-override dependenciesforfile := $(foreach file,$(filter-out $(assetfiles),$(sourcefiles) $(sourceincludes)),$(file)|$(subst $(space),|,$(shell $(CAT) $(call quote,$(BUILDDIR)/dependencies) | $(SED) $(call quote,/^$(call sedesc,$(call localuri,$(file)))$$/$(comma)/^[^    ]/!d;/^ /!d;s/^ //))))
+override dependenciesforfile := $(foreach file,$(filter-out $(assetfiles),$(sourcefiles) $(sourceincludes)),$(file)|$(subst $(space),|,$(shell $(SED) $(call quote,/^$(call sedesc,$(call localuri,$(file)))$$/$(comma)/^[^    ]/!d;/^ /!d;s/^ //) <$(call quote,$(BUILDDIR)/dependencies))))
 
 # (callable) Get the list of dependency leiris for the given source files.
 #
This page took 0.023499 seconds and 4 git commands to generate.