]> www.infradead.org Git - mtd-utils.git/commit
common.mk: tweak rules to workaround make-3.80 bugs
authorMike Frysinger <vapier@gentoo.org>
Mon, 12 Jan 2009 16:08:03 +0000 (11:08 -0500)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 13 Jan 2009 11:05:38 +0000 (13:05 +0200)
commitea429635388f7bb53f62c41ec3d5ccf5fa207370
tree6a7ef4423364fbb256da708cd38356657b6624e6
parente95a99a2c5ffb5ae1bf0f69bc553f591e57815e2
common.mk: tweak rules to workaround make-3.80 bugs

I got some reports from people who use make-3.80 that mtd-utils wasn't
building correctly the first time.  Turns out that older versions of make
misbehave with pattern rules and full paths.  So I've tweaked the code a
little to work with make-3.80 and make-3.81 (the latest release).

Also, I added a small optimization to avoid running `mkdir` when building
in-tree.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
common.mk