Removed redundant '-r' flags for cp. Fixes compilation on BSD/Darwin.
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Dec 2007 18:45:35 +0000 (18:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Dec 2007 18:45:35 +0000 (18:45 +0000)
 $(CP) is defined as CP:="cp -fpR"

Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net>
SVN-Revision: 9661

package/fonera-mp3-drv/Makefile
package/libjson-c/Makefile
package/rt2x00/Makefile

index 94c19f42c2678431f2851562788d95973777337a..e0c4d45088d03ca0cc5a1478c80d8de2058ac0ff 100644 (file)
@@ -30,7 +30,7 @@ endef
 
 define Build/Prepare
        $(call Build/Prepare/Default)
-       $(CP) -r src/* $(PKG_BUILD_DIR)/
+       $(CP) src/* $(PKG_BUILD_DIR)/
 endef
 
 define Build/Compile
index 01116aaf632a3c4bef64a9e012bdf7a742a714b4..bcb298418d001d1c1d98f27b1dd9daf6fa5b9ee4 100644 (file)
@@ -37,11 +37,11 @@ endef
 
 define Build/InstallDev
        mkdir -p $(1)/usr/include
-       $(CP) -r $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
        mkdir -p $(1)/usr/lib
-       $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
        mkdir -p $(1)/usr/lib/pkgconfig
-       $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
 endef
 
 define Build/UninstallDev
index b250f1f62b1fcc9c4ec6b53b376fa130fa3a4e22..4d63963bc87bd3362dea7567b35f34dd10ebb2bd 100644 (file)
@@ -139,7 +139,7 @@ PKG_EXTRA_CFLAGS:= \
 
 define Build/Prepare
        $(call Build/Prepare/Default)
-       $(CP) -r src/* $(PKG_BUILD_DIR)/
+       $(CP) src/* $(PKG_BUILD_DIR)/
        unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT61FW)
        unzip -jod $(PKG_BUILD_DIR) $(DL_DIR)/$(RT71FW)
 endef