summaryrefslogtreecommitdiffstats
path: root/autobuild
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-06-25 17:58:24 -0400
committerScott Murray <scott.murray@konsulko.com>2020-06-25 17:58:42 -0400
commit62fc036c4e77c88eab56c04a4cb714793cfd6420 (patch)
treedfa34dea99c295dc628a00e3f8d1a4cc676f4731 /autobuild
parentb73de9a9f0c551ce3cc069dd8407a1ba24f7f4aa (diff)
Fix a couple of issues related to running the autobuild script from outside the source tree. Bug-AGL: SPEC-3300 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I874e911511be6486e9458b66d213c439f48655c1
Diffstat (limited to 'autobuild')
-rwxr-xr-xautobuild/agl/autobuild2
-rwxr-xr-xautobuild/linux/autobuild2
2 files changed, 4 insertions, 0 deletions
diff --git a/autobuild/agl/autobuild b/autobuild/agl/autobuild
index fa1d1c2..fa27570 100755
--- a/autobuild/agl/autobuild
+++ b/autobuild/agl/autobuild
@@ -73,6 +73,7 @@ clean-all: clean-release
distclean: clean-all
configure-release: clean-release
+ @cd $(ROOT_DIR)
@rm -rf node_modules
@npm install
@@ -90,6 +91,7 @@ build-debug: ;
build-all: build-release
package-release: package-%: build-%
+ @mkdir -p $(OUTPUT_DIR)/
@cp $(ROOT_DIR)/package/*.wgt $(OUTPUT_DIR)/
@if [ "$(abspath $(DEST))" != "$(abspath $(OUTPUT_DIR))" ]; then \
mkdir -p $(DEST) && cp $(OUTPUT_DIR)/*.wgt $(DEST); \
diff --git a/autobuild/linux/autobuild b/autobuild/linux/autobuild
index fa1d1c2..fa27570 100755
--- a/autobuild/linux/autobuild
+++ b/autobuild/linux/autobuild
@@ -73,6 +73,7 @@ clean-all: clean-release
distclean: clean-all
configure-release: clean-release
+ @cd $(ROOT_DIR)
@rm -rf node_modules
@npm install
@@ -90,6 +91,7 @@ build-debug: ;
build-all: build-release
package-release: package-%: build-%
+ @mkdir -p $(OUTPUT_DIR)/
@cp $(ROOT_DIR)/package/*.wgt $(OUTPUT_DIR)/
@if [ "$(abspath $(DEST))" != "$(abspath $(OUTPUT_DIR))" ]; then \
mkdir -p $(DEST) && cp $(OUTPUT_DIR)/*.wgt $(DEST); \