From: Mike Gilbert Date: Thu, 21 Jan 2016 15:59:32 +0000 (-0500) Subject: btrfs-progs: Makefile.in: Simplify/correct install-static X-Git-Tag: upstream/4.16.1~1747 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30ce6c76c14621e1063039a690fc77dd09f78243;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: Makefile.in: Simplify/correct install-static install -D does not create the last component, so this failed if $(DESTDIR)$(bindir) did not already exist. There's no need for a loop here since install accepts multiple source arguments. Signed-off-by: Mike Gilbert Signed-off-by: David Sterba --- diff --git a/Makefile.in b/Makefile.in index 19697ff..82a3143 100644 --- a/Makefile.in +++ b/Makefile.in @@ -379,9 +379,8 @@ install: $(libs) $(progs_install) $(INSTALLDIRS) $(INSTALL) -m644 $(headers) $(DESTDIR)$(incdir) install-static: $(progs_static) $(INSTALLDIRS) - for p in $(progs_static) ; do \ - $(INSTALL) -D -m755 $$p $(DESTDIR)$(bindir)/ ; \ - done + $(INSTALL) -m755 -d $(DESTDIR)$(bindir) + $(INSTALL) $(progs_static) $(DESTDIR)$(bindir) # btrfsck is a link to btrfs in the src tree, make it so for installed file as well $(LN_S) -f btrfs.static $(DESTDIR)$(bindir)/btrfsck.static