Patchwork ubi-utils: tweak vpath handling

login
register
mail settings
Submitter Mike Frysinger
Date March 31, 2009, 4:09 a.m.
Message ID <1238472580-4762-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/25346/
State Accepted, archived
Commit 02b833db191d98be35da5d54c5fa98822823b4a6
Headers show

Comments

Mike Frysinger - March 31, 2009, 4:09 a.m.
Building out of tree currently fails with ubi-utils because make gets
confused and can't figure out the vpathed .c files.  Using VPATH rather
than vpath seems to work around it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 ubi-utils/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Artem Bityutskiy - March 31, 2009, 6:25 a.m.
On Tue, 2009-03-31 at 00:09 -0400, Mike Frysinger wrote:
> Building out of tree currently fails with ubi-utils because make gets
> confused and can't figure out the vpathed .c files.  Using VPATH rather
> than vpath seems to work around it.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Pushed, thanks for the patch!

Patch

diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index 020fe09..dcff7e3 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -13,7 +13,7 @@  LIBS = libubi libmtd libubigen libiniparser libscan
 TARGETS = ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
           ubidetach ubinize ubiformat ubirename
 
-vpath %.c src
+VPATH = src
 
 include ../common.mk