From: Lady Date: Sun, 7 Jul 2024 04:37:28 +0000 (-0400) Subject: Eliminate unnecessary use of cat X-Git-Tag: 0.9.6~2 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/c31f03fa8cf92cdd755b3a0f42e5b7b0cdd54d75?ds=inline;hp=f7575ab4439de4b06d98e97dd3d1019ac3fab904 Eliminate unnecessary use of cat Input redirection works just as well here. --- diff --git a/GNUmakefile b/GNUmakefile index 931f32d..952aebd 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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. #