build: stop on error in subcommand

make only evaluates $? of an entire shell invocation. As such, if any
command in the chain can fail, $? needs to be thrown, and early so.
This commit is contained in:
Jan Engelhardt
2010-12-11 03:36:46 +01:00
parent 748498038a
commit 549508499c
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ man_run = \
name="$${name\#\#*/libxt_}"; \
if [ -f "$$ext" ]; then \
echo ".SS $$name"; \
cat "$$ext"; \
cat "$$ext" || exit $$?; \
continue; \
fi; \
done >$@;