summaryrefslogtreecommitdiff
path: root/stepmake
diff options
context:
space:
mode:
authorJulien Rioux <julien.rioux@gmail.com>2013-09-12 12:00:10 +0200
committerJulien Rioux <julien.rioux@gmail.com>2013-09-18 05:41:54 -0400
commit6c543f54d528fc3ef293a64d76052290cd05bcba (patch)
tree47bc4da95c11bf94127cdc9e3363044cdaaf9fa0 /stepmake
parent98b7bc3e8d9549c3991d82fd1b99f26724a70450 (diff)
Build: Only sed through an input file if it exists.
Diffstat (limited to 'stepmake')
-rw-r--r--stepmake/stepmake/texinfo-vars.make2
1 files changed, 1 insertions, 1 deletions
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))) \
)