Skip to content
Snippets Groups Projects
Commit eac784e5 authored by Phoebe Goldman's avatar Phoebe Goldman
Browse files

rewrite docs makefile for less spurious error-looking output

I got pissed off that the text "failed. See log in <rule>.log"
appeared in successful doc makefile executions, so I made that no
longer the case. Now, failure messages print when a command fails, but
will not appear at all in the output of a successful run.

Also, processes' error output was not being redirected to logfiles,
because the `2>&1` was before the `> logfile` and shell redirects are
stupid. Now both stdout and stderr of subprocesses are redirected to
logfiles.
parent 394d6122
No related branches found
No related tags found
No related merge requests found
...@@ -12,20 +12,27 @@ intermediate = asdf.cps asdf.log asdf.vr asdf.aux asdf.fn asdf.toc asdf.vrs \ ...@@ -12,20 +12,27 @@ intermediate = asdf.cps asdf.log asdf.vr asdf.aux asdf.fn asdf.toc asdf.vrs \
all: asdf.html asdf.info asdf.pdf manual-html all: asdf.html asdf.info asdf.pdf manual-html
log_output = > $@.log 2>&1 || { echo " failed. See log in $@.log" ; exit 1 ;}
manual-html: asdf.texinfo manual-html: asdf.texinfo
makeinfo --html asdf.texinfo \ @echo "makeinfo --html asdf.texinfo"
2>&1 > manual-html.log || { echo "failed. See log in manual-html.log" ; exit 1 ;} @makeinfo --html asdf.texinfo \
$(log_output)
asdf.html: asdf.texinfo asdf.html: asdf.texinfo
makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo \ @echo "makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo"
2>&1 > asdf.html.log || { echo "failed. See log in asdf.html.log" ; exit 1 ;} @makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo \
$(log_output)
asdf.info: asdf.texinfo asdf.info: asdf.texinfo
makeinfo asdf.texinfo @echo "makeinfo asdf.texinfo"
@makeinfo asdf.texinfo \
$(log_output)
asdf.pdf: asdf.texinfo asdf.pdf: asdf.texinfo
texi2pdf asdf.texinfo \ @echo "texi2pdf asdf.texinfo"
2>&1 > asdf.pdf.log || { echo "failed. See log in asdf.pdf.log" ; exit 1 ;} @texi2pdf asdf.texinfo \
$(log_output)
website: all website: all
rsync -lt --no-g ${webfiles} ${website} rsync -lt --no-g ${webfiles} ${website}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment