]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: change install command to make it compatible with ancient coreutils
authorLuciano Coelho <luciano.coelho@nokia.com>
Wed, 17 Mar 2010 15:09:20 +0000 (17:09 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 17 Mar 2010 15:45:35 +0000 (08:45 -0700)
In older versions of the install tool from the GNU coreutils package, the -t
option is not supported.  The -t option can be safely replaced by the older
"install [OPTION]... SOURCE... DIRECTORY" format.

By changing the way we call install, we can make the iw tool more friendly to
ancient distributions.

Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Makefile

index b0a4278ed9e4cc791abbcd1c1f6c42e204ce93d7..c51706b983439f257a3a696709ba26859c0190da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -86,10 +86,10 @@ check:
 install: iw iw.8.gz
        @$(NQ) ' INST iw'
        $(Q)$(MKDIR) $(DESTDIR)$(SBINDIR)
-       $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(SBINDIR) iw
+       $(Q)$(INSTALL) -m 755 iw $(DESTDIR)$(SBINDIR)
        @$(NQ) ' INST iw.8'
        $(Q)$(MKDIR) $(DESTDIR)$(MANDIR)/man8/
-       $(Q)$(INSTALL) -m 644 -t $(DESTDIR)$(MANDIR)/man8/ iw.8.gz
+       $(Q)$(INSTALL) -m 644 iw.8.gz $(DESTDIR)$(MANDIR)/man8/
 
 clean:
        $(Q)rm -f iw *.o *~ *.gz version.c *-stamp