tech-pkg archive

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

Re: Minor annoyance with bmake



On Sat, May 04, 2019 at 10:59:14AM -0500, Jason Bacon wrote:
 > For example, "bmake clean patch" only runs the patch phase if there was no
 > work directory to begin with.

In general "make foo bar" is not the same as "make foo && make bar",
because the former only reads the makefile once. The consequences are
most noticeable (in general) when the first target is "depend",
because then the second target doesn't see the depends changes. This
is true even when there isn't state-specific makefile logic.

It's best to get in the habit of typing the second form instead; in
pkgsrc where processing the makefile can take long enough to be
annoying (especially on slow hw) this is not much fun, but making
bmake faster is much more likely in the long run than dealing with
this issue in a systematic/reliable way...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index