summaryrefslogtreecommitdiffstats
path: root/autobuild/agl/autobuild.in
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-07-10 16:13:43 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commit99b807f475ad71582b15c06df5e09593d2043d2f (patch)
tree009432522e3980cfa310eb0a9ac2b913e7aaad4f /autobuild/agl/autobuild.in
parent6a0e0eb8a1c6f709b02cd3a6eb4b2746806fcd90 (diff)
Fix: crash if no DEST argument provided
Change-Id: I21d426f0ed5cc6b0a8edf0ebb9ce3a69ab313d0b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'autobuild/agl/autobuild.in')
-rwxr-xr-xautobuild/agl/autobuild.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/autobuild/agl/autobuild.in b/autobuild/agl/autobuild.in
index 31e29f7..d77cb7b 100755
--- a/autobuild/agl/autobuild.in
+++ b/autobuild/agl/autobuild.in
@@ -16,6 +16,7 @@
THISFILE := $(lastword $(MAKEFILE_LIST))
BUILD_DIR := $(abspath $(dir $(THISFILE)/../../../../..)/build)
+DEST := ${BUILD_DIR}/target
.PHONY: all clean distclean configure build package
@@ -38,9 +39,8 @@ package: build
@mkdir -p ${BUILD_DIR}/$@/lib
@mkdir -p ${BUILD_DIR}/$@/htdocs
@mkdir -p ${BUILD_DIR}/$@/data
- @[ "${DEST}" ] && mkdir -p ${DEST}
@cmake --build ${BUILD_DIR} --target widget
- @[ "${DEST}" ] && cp ${BUILD_DIR}/*wgt ${DEST}
+ @mkdir -p ${DEST} && cp ${BUILD_DIR}/*wgt ${DEST}
${BUILD_DIR}/Makefile:
@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}