diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-19 16:00:07 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@intel.com> | 2011-11-22 23:31:18 +0200 |
commit | 952f4b15bd0bbcd2d7ef1a60e316fab309dcce5a (patch) | |
tree | 97fb66ca8aca2b408e2ee37703f7e57ad9570b0a /Makefile | |
parent | d37fcc0afd0d4a14c56812847e8e4257d0a99e3b (diff) |
Makefile: fix install target with out-of-tree builds
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>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |