rapidjson: simplify install commands
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 18 Nov 2014 14:29:39 +0000 (09:29 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 18 Nov 2014 22:34:03 +0000 (23:34 +0100)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rapidjson/rapidjson.mk

index ff516c4120952e7b2af2c21b1b46d54ba7c2f536..6658da25f13a259e12e25420ef8764442609e811 100644 (file)
@@ -12,18 +12,7 @@ RAPIDJSON_INSTALL_TARGET = NO
 RAPIDJSON_INSTALL_STAGING = YES
 
 define RAPIDJSON_INSTALL_STAGING_CMDS
-       $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson
-       $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/internal
-       $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/error
-       $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/msinttypes
-       $(INSTALL) -m 0644 $(@D)/include/rapidjson/*.h \
-               $(STAGING_DIR)/usr/include/rapidjson
-       $(INSTALL) -m 0644 $(@D)/include/rapidjson/internal/*.h \
-               $(STAGING_DIR)/usr/include/rapidjson/internal
-       $(INSTALL) -m 0644 $(@D)/include/rapidjson/error/*.h \
-               $(STAGING_DIR)/usr/include/rapidjson/error
-       $(INSTALL) -m 0644 $(@D)/include/rapidjson/msinttypes/*.h \
-               $(STAGING_DIR)/usr/include/rapidjson/msinttypes
+       cp -dpfr $(@D)/include/* $(STAGING_DIR)/usr/include
 endef
 
 $(eval $(generic-package))