From: Julien Rioux Date: Thu, 12 Sep 2013 10:00:10 +0000 (+0200) Subject: Build: Only sed through an input file if it exists. X-Git-Tag: release/2.17.27-1~26 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=6c543f54d528fc3ef293a64d76052290cd05bcba Build: Only sed through an input file if it exists. --- 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))) \ )