From: Brian Norris Date: Tue, 26 Jan 2016 21:36:56 +0000 (-0800) Subject: Makefile: install: don't look for scripts in BUILDDIR X-Git-Tag: v2.0.0-rc1~48 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=90f2151eb19757a27af2dd710237e69a64740c12;p=mtd-utils.git 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. Fixes: 7d81790ced34 ("mtd-utils: Restructure the mtd-utils source.") Signed-off-by: Brian Norris Reviewed-by: Dongsheng Yang --- diff --git a/Makefile b/Makefile index bd9504a..977c9c5 100644 --- a/Makefile +++ b/Makefile @@ -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