On 4 June 2014 02:37, Sam Bobroff <[email protected]> wrote: > Allow "make install" to handle tool binaries that reside in > sub-directories. > > Without this patch "make install" will fail if it needs to strip > a tool binary (e.g. debugging is not enabled) that is installed > from a subdirectory. An example is fsdev/virtfs-proxy-helper. > > Signed-off-by: Sam Bobroff <[email protected]> > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index d830483..9c23265 100644 > --- a/Makefile > +++ b/Makefile > @@ -380,7 +380,7 @@ install-datadir install-localstatedir > ifneq ($(TOOLS),) > $(INSTALL_PROG) $(TOOLS) "$(DESTDIR)$(bindir)" > ifneq ($(STRIP),) > - $(STRIP) $(TOOLS:%="$(DESTDIR)$(bindir)/%") > + $(STRIP) $(foreach T,$(TOOLS),"$(DESTDIR)$(bindir)/$(notdir $T)") > endif > endif > ifneq ($(CONFIG_MODULES),) > -- > 1.7.10.4
We should probably also do this on the other invocation of $(STRIP} for installs into libexecdir. thanks -- PMM
