f1eb75aab0
The angular modules are very small compared to angular: ls -lahS target/var/www total 228K -rw-r--r-- 1 peko peko 142K Jul 4 16:06 angular.js -rw-r--r-- 1 peko peko 23K Jul 4 16:06 angular-animate.js -rw-r--r-- 1 peko peko 11K Jul 4 16:06 angular-message-format.js -rw-r--r-- 1 peko peko 5.9K Jul 4 16:06 angular-sanitize.js -rw-r--r-- 1 peko peko 4.3K Jul 4 16:06 angular-route.js drwxr-xr-x 2 peko peko 4.0K Jul 4 16:06 . drwxr-xr-x 5 peko peko 4.0K Jul 4 15:58 .. -rw-r--r-- 1 peko peko 3.7K Jul 4 16:06 angular-aria.js -rw-r--r-- 1 peko peko 3.6K Jul 4 16:06 angular-resource.js -rw-r--r-- 1 peko peko 3.6K Jul 4 16:06 angular-touch.js -rw-r--r-- 1 peko peko 2.6K Jul 4 16:06 angular-messages.js -rw-r--r-- 1 peko peko 1.7K Jul 4 16:06 angular-loader.js -rw-r--r-- 1 peko peko 1.4K Jul 4 16:06 angular-cookies.js So drop the suboptions and simplify the package logic. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
28 lines
867 B
Makefile
28 lines
867 B
Makefile
################################################################################
|
|
#
|
|
# angularjs
|
|
#
|
|
################################################################################
|
|
|
|
ANGULARJS_VERSION = 1.4.3
|
|
ANGULARJS_SOURCE = angular-$(ANGULARJS_VERSION).zip
|
|
ANGULARJS_SITE = https://code.angularjs.org/$(ANGULARJS_VERSION)
|
|
ANGULARJS_LICENSE = MIT
|
|
# There's no separate license file in the archive, so use angular.js instead.
|
|
ANGULARJS_LICENSE_FILES = angular.js
|
|
|
|
define ANGULARJS_EXTRACT_CMDS
|
|
unzip $(DL_DIR)/$(ANGULARJS_SOURCE) -d $(@D)
|
|
mv $(@D)/angular-$(ANGULARJS_VERSION)/* $(@D)
|
|
rmdir $(@D)/angular-$(ANGULARJS_VERSION)
|
|
endef
|
|
|
|
# install .min.js as .js
|
|
define ANGULARJS_INSTALL_TARGET_CMDS
|
|
$(foreach f,$(notdir $(wildcard $(@D)/*.min.js)),
|
|
$(INSTALL) -m 0644 -D $(@D)/$(f) \
|
|
$(TARGET_DIR)/var/www/$(f:.min.js=.js)$(sep))
|
|
endef
|
|
|
|
$(eval $(generic-package))
|