help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange "out of order" output using "info" command in a rule


From: Robert P. J. Day
Subject: strange "out of order" output using "info" command in a rule
Date: Sat, 12 Oct 2019 08:13:34 -0400 (EDT)
User-agent: Alpine 2.21 (LFD 202 2017-01-01)

  looking at someone else's Makefile, did a full build and saved all
the output for subsequent perusal thusly:

  $ make ... > /tmp/stuff 2>&1

  weirdly(?), there is a target which first runs a number of simple
linux commands (rm, mkdir, ...), then invokes "foreach" a couple
times to call some functions.

  i say "weirdly" because the output shows the "foreach" invocations
being run (they invoke their own "info" calls) *before* the linux
commands.

  is there some kind of buffering being done that would cause this?
it's entirely reproducible, and the make runs perfectly correctly, but
the saved output clearly(?) does not match the order of commands in
that particular rule.

  am i misunderstanding something simple?

rday



reply via email to

[Prev in Thread] Current Thread [Next in Thread]