bootstrap: install production files only
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 12 Jan 2015 23:30:37 +0000 (00:30 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 14 Jan 2015 15:48:56 +0000 (16:48 +0100)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/bootstrap/bootstrap.mk

index 1bf8aa23a10d192bbdacf53ab1fc7c1e08ea7401..1a1c4f1d77fd966751431bed65468937966e0c7e 100644 (file)
@@ -14,8 +14,13 @@ define BOOTSTRAP_EXTRACT_CMDS
 endef
 
 define BOOTSTRAP_INSTALL_TARGET_CMDS
-       mkdir -p $(TARGET_DIR)/var/www/bootstrap
-       cp -dpfr $(@D)/dist/* $(TARGET_DIR)/var/www/bootstrap
+       $(INSTALL) -m 0644 -D $(@D)/dist/css/bootstrap-theme.min.css \
+               $(TARGET_DIR)/var/www/bootstrap/css/bootstrap-theme.min.css
+       $(INSTALL) -m 0644 -D $(@D)/dist/css/bootstrap.min.css \
+               $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css
+       $(INSTALL) -m 0644 -D $(@D)/dist/js/bootstrap.min.js \
+               $(TARGET_DIR)/var/www/bootstrap/js/bootstrap.min.js
+       cp -r $(@D)/dist/fonts $(TARGET_DIR)/var/www/bootstrap/
 endef
 
 $(eval $(generic-package))