include/package-defaults.mk: fix default Build/Prepare with empty ./src
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 6 Mar 2018 20:55:01 +0000 (21:55 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Wed, 7 Mar 2018 08:59:08 +0000 (09:59 +0100)
Copying ./src/* would fail when src exists, but is empty or only contains
hidden files.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
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