]> err.no Git - linux-2.6/blobdiff - Makefile
e1000: Dead variable cleanup
[linux-2.6] / Makefile
index 131950c02919fa467ec1d95155808292e2dfbece..fc8e08c419f09e81252f3aa41cb7f47524c0af60 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1112,7 +1112,6 @@ modules_install: _emodinst_ _emodinst_post
 install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)
 PHONY += _emodinst_
 _emodinst_:
-       $(Q)rm -rf $(MODLIB)/$(install-dir)
        $(Q)mkdir -p $(MODLIB)/$(install-dir)
        $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modinst
 
@@ -1284,7 +1283,7 @@ kernelversion:
 #  build-dir  => directory in kernel source tree to use
 
 ifeq ($(KBUILD_EXTMOD),)
-        build-dir  = $(dir $@)
+        build-dir  = $(patsubst %/,%,$(dir $@))
         target-dir = $(dir $@)
 else
         zap-slash=$(filter-out .,$(patsubst %/,%,$(dir $@)))