From: spdawson at gmail.com <spdawson@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH RFC 2/2] Use JavaScript install path from configuration during package installation
Date: Tue, 19 Jun 2012 07:56:04 +0100 [thread overview]
Message-ID: <1340088964-10630-3-git-send-email-spdawson@gmail.com> (raw)
In-Reply-To: <1340088964-10630-1-git-send-email-spdawson@gmail.com>
From: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
package/explorercanvas/explorercanvas.mk | 4 ++--
package/flot/flot.mk | 4 ++--
package/jquery-sparkline/jquery-sparkline.mk | 4 ++--
package/jquery-validation/jquery-validation.mk | 4 ++--
package/jquery/jquery.mk | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/package/explorercanvas/explorercanvas.mk b/package/explorercanvas/explorercanvas.mk
index 93dcb1f..e099faa 100644
--- a/package/explorercanvas/explorercanvas.mk
+++ b/package/explorercanvas/explorercanvas.mk
@@ -8,11 +8,11 @@ endef
define EXPLORERCANVAS_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/excanvas.compiled.js \
- $(TARGET_DIR)/var/www/excanvas.js
+ $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/excanvas.js
endef
define EXPLORERCANVAS_UNINSTALL_TARGET_CMDS
- rm -f $(TARGET_DIR)/var/www/excanvas.js
+ rm -f $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/excanvas.js
endef
$(eval $(call GENTARGETS))
diff --git a/package/flot/flot.mk b/package/flot/flot.mk
index 8b51b55..3d6987e 100644
--- a/package/flot/flot.mk
+++ b/package/flot/flot.mk
@@ -12,12 +12,12 @@ FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\
define FLOT_INSTALL_TARGET_CMDS
for i in $(FLOT_FILES); do \
- $(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js; \
+ $(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/$$i.js; \
done
endef
define FLOT_UNINSTALL_TARGET_CMDS
- rm -f $(TARGET_DIR)/var/www/jquery.flot*
+ rm -f $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/jquery.flot*
endef
$(eval $(call GENTARGETS))
diff --git a/package/jquery-sparkline/jquery-sparkline.mk b/package/jquery-sparkline/jquery-sparkline.mk
index d0b478a..3ef1dc7 100644
--- a/package/jquery-sparkline/jquery-sparkline.mk
+++ b/package/jquery-sparkline/jquery-sparkline.mk
@@ -8,11 +8,11 @@ endef
define JQUERY_SPARKLINE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/$(JQUERY_SPARKLINE_SOURCE) \
- $(TARGET_DIR)/var/www/jquery.sparkline.js
+ $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/jquery.sparkline.js
endef
define JQUERY_SPARKLINE_UNINSTALL_TARGET_CMDS
- rm -f $(TARGET_DIR)/var/www/jquery.sparkline.js
+ rm -f $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/jquery.sparkline.js
endef
$(eval $(call GENTARGETS))
diff --git a/package/jquery-validation/jquery-validation.mk b/package/jquery-validation/jquery-validation.mk
index 5fee4c1..ccf1155 100644
--- a/package/jquery-validation/jquery-validation.mk
+++ b/package/jquery-validation/jquery-validation.mk
@@ -8,11 +8,11 @@ endef
define JQUERY_VALIDATION_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/jquery.validate.min.js \
- $(TARGET_DIR)/var/www/jquery.validate.js
+ $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/jquery.validate.js
endef
define JQUERY_VALIDATION_UNINSTALL_TARGET_CMDS
- rm -f $(TARGET_DIR)/var/www/jquery.validate.js
+ rm -f $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/jquery.validate.js
endef
$(eval $(call GENTARGETS))
diff --git a/package/jquery/jquery.mk b/package/jquery/jquery.mk
index 08dd4a3..93d8eab 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_JAVASCRIPT_INSTALL_PATH)/jquery.js
endef
define JQUERY_UNINSTALL_TARGET_CMDS
- rm -f $(TARGET_DIR)/var/www/jquery.js
+ rm -f $(TARGET_DIR)/$(BR2_JAVASCRIPT_INSTALL_PATH)/jquery.js
endef
$(eval $(call GENTARGETS))
--
1.7.9.5
prev parent reply other threads:[~2012-06-19 6:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-19 6:56 [Buildroot] [PATCH RFC 0/2] Add configuration item for custom JavaScript install path spdawson at gmail.com
2012-06-19 6:56 ` [Buildroot] [PATCH RFC 1/2] " spdawson at gmail.com
2012-06-20 23:38 ` Arnout Vandecappelle
2012-06-26 8:32 ` Simon Dawson
2012-06-28 22:12 ` Arnout Vandecappelle
2012-06-19 6:56 ` spdawson at gmail.com [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1340088964-10630-3-git-send-email-spdawson@gmail.com \
--to=spdawson@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox