* [PATCH] Makefile: fix install target with out-of-tree builds
@ 2011-11-19 21:00 Mike Frysinger
2011-11-22 21:32 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2011-11-19 21:00 UTC (permalink / raw)
To: linux-mtd
The install target always looks for the compiled binaries in the working
directory which breaks when doing something like `make CHOST=... install`.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index d0bc3d6..4b71b8f 100644
--- a/Makefile
+++ b/Makefile
@@ -58,9 +58,9 @@ endif
rm -f $(BUILDDIR)/include/version.h
$(MAKE) -C $(TESTS) clean
-install:: ${BINS} ${SCRIPTS}
+install:: $(addprefix $(BUILDDIR)/,${BINS}) ${SCRIPTS}
mkdir -p ${DESTDIR}/${SBINDIR}
- install -m 0755 ${BINS} ${SCRIPTS} ${DESTDIR}/${SBINDIR}/
+ install -m 0755 $^ ${DESTDIR}/${SBINDIR}/
mkdir -p ${DESTDIR}/${MANDIR}/man1
gzip -9c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz
--
1.7.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Makefile: fix install target with out-of-tree builds
2011-11-19 21:00 [PATCH] Makefile: fix install target with out-of-tree builds Mike Frysinger
@ 2011-11-22 21:32 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-11-22 21:32 UTC (permalink / raw)
To: Mike Frysinger; +Cc: linux-mtd
On Sat, 2011-11-19 at 16:00 -0500, Mike Frysinger wrote:
> The install target always looks for the compiled binaries in the working
> directory which breaks when doing something like `make CHOST=... install`.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Pushed both Makefile fixes, thank you!
Artem.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-22 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-19 21:00 [PATCH] Makefile: fix install target with out-of-tree builds Mike Frysinger
2011-11-22 21:32 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox