From 6c543f54d528fc3ef293a64d76052290cd05bcba Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Thu, 12 Sep 2013 12:00:10 +0200 Subject: [PATCH] Build: Only sed through an input file if it exists. --- stepmake/stepmake/texinfo-vars.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmake/stepmake/texinfo-vars.make b/stepmake/stepmake/texinfo-vars.make index d164356555..c370990413 100644 --- a/stepmake/stepmake/texinfo-vars.make +++ b/stepmake/stepmake/texinfo-vars.make @@ -20,7 +20,7 @@ $(firstword \ # Recursively scan the file $(1) for @include, search for included files # within the texinfo include dirs, and return all dependencies. scan-texi = \ -$(foreach f, $(shell sed -ne "/^@include[[:space:]]/s/@include//p" $(1)), \ +$(foreach f, $(shell test -f $(1) && sed -ne "/^@include[[:space:]]/s/@include//p" $(1)), \ $(call find-texi,$(f)) \ $(call scan-texi,$(call find-texi,$(f))) \ ) -- 2.39.2