]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
default install to $(PREFIX)/sbin
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Sep 2009 13:19:46 +0000 (09:19 -0400)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 30 Sep 2009 15:26:21 +0000 (17:26 +0200)
The iw utility isn't generally useful to normal users, so move it to
$(PREFIX)/sbin with other system management executables.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Makefile

index cb5fcc1aa8509862bfaee9f3ad979f68c03ec961..68bef4d38f1c61a84c272b394ad23348967a9b43 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 MAKEFLAGS += --no-print-directory
 
 PREFIX ?= /usr
-BINDIR ?= $(PREFIX)/bin
+SBINDIR ?= $(PREFIX)/sbin
 MANDIR ?= $(PREFIX)/share/man
 PKG_CONFIG ?= pkg-config
 
@@ -85,8 +85,8 @@ check:
 
 install: iw iw.8.gz
        @$(NQ) ' INST iw'
-       $(Q)$(MKDIR) $(DESTDIR)$(BINDIR)
-       $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(BINDIR) iw
+       $(Q)$(MKDIR) $(DESTDIR)$(SBINDIR)
+       $(Q)$(INSTALL) -m 755 -t $(DESTDIR)$(SBINDIR) iw
        @$(NQ) ' INST iw.8'
        $(Q)$(MKDIR) $(DESTDIR)$(MANDIR)/man8/
        $(Q)$(INSTALL) -m 644 -t $(DESTDIR)$(MANDIR)/man8/ iw.8.gz