Makefile: install: don't look for scripts in BUILDDIR
Subsystems (2)
PATCH 1/1 Makefile: install: don't look for scripts in BUILDDIR
Our ${SCRIPTS} (e.g., flash_eraseall) are not found in the build directory; they should be found in their original location.
This fixes a typo in the Makefile refactoring, which caused 'make install' to fail with messages like:
make: *** No rule to make target '[...my source-build directory...]/armv7a-cros-linux-gnueabi/misc-utils/flash_eraseall'. Stop.
because the install target is looking in the wrong place for flash_eraseall.
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -67,7 +67,7 @@ endif rm -f $(BUILDDIR)/include/version.h $(MAKE) -C $(TESTS) clean -install:: $(addprefix $(BUILDDIR)/,${BINS} ${SCRIPTS}) +install:: $(addprefix $(BUILDDIR)/,${BINS}) ${SCRIPTS} mkdir -p ${DESTDIR}/${SBINDIR} install -m 0755 $^ ${DESTDIR}/${SBINDIR}/ mkdir -p ${DESTDIR}/${MANDIR}/man1
Signature · 1 line
2.7.0.rc3.207.g0ac5344
Quoted 5 lines · Brian Norris
Our ${SCRIPTS} (e.g.,
flash_eraseall) are not found in the build directory; they should be found in their original location.This fixes a typo in the
Makefilerefactoring, which caused 'make install' to fail with messages like:
Ooooops, yes, it's my typo. Sorry for that.
Thanx
Yang
Quoted 27 lines
make: *** No rule to make target '[...my source-build directory...]/armv7a-cros-linux-gnueabi/misc-utils/flash_eraseall'. Stop.
because the install target is looking in the wrong place for
flash_eraseall.Fixes 7d81790ced34 ("mtd-utils: Restructure the mtd-utils source.")Signed-off-by Brian Norris <[email protected]>Cc Dongsheng Yang <[email protected]>--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Makefile +1
-1@@ -67,7 +67,7 @@ endif rm -f $(BUILDDIR)/include/version.h $(MAKE) -C $(TESTS) clean -install:: $(addprefix $(BUILDDIR)/,${BINS} ${SCRIPTS}) +install:: $(addprefix $(BUILDDIR)/,${BINS}) ${SCRIPTS} mkdir -p ${DESTDIR}/${SBINDIR} install -m 0755 $^ ${DESTDIR}/${SBINDIR}/ mkdir -p ${DESTDIR}/${MANDIR}/man1
Brian Norris
AppliedQuoted 1 line · Dongsheng Yang
Reviewed-by Dongsheng Yang <[email protected]>
Thanks! Applied to mtd-utils.git