39c181d5a9
other changes: - Add a license file to bootstrap.mk - Add a hash for the license file to bootstrap.hash - Remove copying bootstrap-theme.min.css as it's no longer included. - Remove copying fonts folder as it's no longer included. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
25 lines
791 B
Makefile
25 lines
791 B
Makefile
################################################################################
|
|
#
|
|
# bootstrap
|
|
#
|
|
################################################################################
|
|
|
|
BOOTSTRAP_VERSION = 4.0.0
|
|
BOOTSTRAP_SITE = https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAP_VERSION)
|
|
BOOTSTRAP_SOURCE = bootstrap-$(BOOTSTRAP_VERSION)-dist.zip
|
|
BOOTSTRAP_LICENSE = MIT
|
|
BOOTSTRAP_LICENSE_FILES = bootstrap.css
|
|
|
|
define BOOTSTRAP_EXTRACT_CMDS
|
|
$(UNZIP) $(DL_DIR)/$(BOOTSTRAP_SOURCE) -d $(@D)
|
|
endef
|
|
|
|
define BOOTSTRAP_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0644 -D $(@D)/css/bootstrap.min.css \
|
|
$(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css
|
|
$(INSTALL) -m 0644 -D $(@D)/js/bootstrap.min.js \
|
|
$(TARGET_DIR)/var/www/bootstrap/js/bootstrap.min.js
|
|
endef
|
|
|
|
$(eval $(generic-package))
|