include/package-defaults.mk: fix default Build/Prepare with empty ./src
[openwrt/openwrt.git] / include / package-defaults.mk
index 6bbfdcc3cc221058787bbf31219aef7786ce5ad3..31e331b2d5631448c69afa4b265bfb0268b394cb 100644 (file)
@@ -65,7 +65,7 @@ Build/Patch:=$(Build/Patch/Default)
 ifneq ($(strip $(PKG_UNPACK)),)
   define Build/Prepare/Default
        $(PKG_UNPACK)
-       [ ! -d ./src/ ] || $(CP) ./src/* $(PKG_BUILD_DIR)
+       [ ! -d ./src/ ] || $(CP) ./src/. $(PKG_BUILD_DIR)
        $(Build/Patch)
   endef
 endif