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 09:08:46 +0000 (10:08 +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 6672b67b53c2c575fadf01b76e5e802939f14d12..05ed05d0c6ea3c5f97a903c6d9ba24adbac77583 100644 (file)
@@ -62,7 +62,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