]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wilink8-wlan/crda.git/commitdiff
crda: Add DESTDIR support in install-libreg* rules in Makefile
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Feb 2014 18:58:44 +0000 (13:58 -0500)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Wed, 19 Feb 2014 21:53:20 +0000 (13:53 -0800)
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Makefile

index 0b2f0d7f8d4e12afea9ee0ea01615197012aebde..1f2550915c0db085220408659566b2b30cb1e213 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -120,13 +120,13 @@ $(LIBREG): regdb.h reglib.h reglib.c
 
 install-libreg-headers:
        $(NQ) '  INSTALL  libreg-headers'
-       $(Q)mkdir -p $(INCLUDE_DIR)
-       $(Q)cp *.h $(INCLUDE_DIR)/
+       $(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR)
+       $(Q)cp *.h $(DESTDIR)/$(INCLUDE_DIR)/
 
 install-libreg:
        $(NQ) '  INSTALL  libreg'
-       $(Q)mkdir -p $(LIBDIR)
-       $(Q)cp $(LIBREG) $(LIBDIR)/
+       $(Q)mkdir -p $(DESTDIR)/$(LIBDIR)
+       $(Q)cp $(LIBREG) $(DESTDIR)/$(LIBDIR)/
        $(Q)ldconfig
 
 %.o: %.c regdb.h $(LIBREG)