use SBINDIR in install target of CRDA
authorDaniel Mierswa <impulze@impulze.org>
Fri, 6 Feb 2009 14:00:35 +0000 (15:00 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 6 Feb 2009 22:40:27 +0000 (14:40 -0800)
You supply the user with a chance to specify SBINDIR during make
install, yet forgot to use it in one place at the install target. I
attached a patch against trunk for crda.git which fixes that.

Makefile

index 461103d..106397d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,7 @@ verify: $(REG_BIN) regdbdump
 
 install: crda crda.8.gz regdbdump.8.gz
        $(NQ) '  INSTALL  crda'
-       $(Q)$(MKDIR) $(DESTDIR)/sbin
+       $(Q)$(MKDIR) $(DESTDIR)/$(SBINDIR)
        $(Q)$(INSTALL) -m 755 -t $(DESTDIR)/$(SBINDIR) crda
        $(NQ) '  INSTALL  regdbdump'
        $(Q)$(INSTALL) -m 755 -t $(DESTDIR)/$(SBINDIR) regdbdump