[Buildroot] [PATCH] jquery: allow custom install location
spdawson at gmail.com
spdawson at gmail.com
Thu Jun 14 13:43:08 UTC 2012
From: Simon Dawson <spdawson at gmail.com>
Allow the JavaScript install path to be customised. By default, JavaScript files
are installed to /var/www under the target root directory.
Signed-off-by: Simon Dawson <spdawson at gmail.com>
---
package/jquery/Config.in | 7 +++++++
package/jquery/jquery.mk | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/package/jquery/Config.in b/package/jquery/Config.in
index 92f5604..e811d48 100644
--- a/package/jquery/Config.in
+++ b/package/jquery/Config.in
@@ -6,3 +6,10 @@ config BR2_PACKAGE_JQUERY
animating, and Ajax interactions for rapid web development.
http://jquery.com
+
+config BR2_PACKAGE_JQUERY_JAVASCRIPT_PATH
+ string "Target install path for JavaScript"
+ default "/var/www"
+ depends on BR2_PACKAGE_JQUERY
+ help
+ Specify a target install path for JavaScript files
diff --git a/package/jquery/jquery.mk b/package/jquery/jquery.mk
index 08dd4a3..a4c31a8 100644
--- a/package/jquery/jquery.mk
+++ b/package/jquery/jquery.mk
@@ -8,11 +8,11 @@ endef
define JQUERY_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/$(JQUERY_SOURCE) \
- $(TARGET_DIR)/var/www/jquery.js
+ $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_JAVASCRIPT_PATH)/jquery.js
endef
define JQUERY_UNINSTALL_TARGET_CMDS
- rm -f $(TARGET_DIR)/var/www/jquery.js
+ rm -f $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_JAVASCRIPT_PATH)/jquery.js
endef
$(eval $(call GENTARGETS))
--
1.7.9.5
More information about the buildroot
mailing list