summaryrefslogtreecommitdiffstats
path: root/conf.d/autobuild/linux
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-07-25 17:33:52 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-07-25 17:33:52 +0200
commita3cecd20f812c3fc71141a487443568c861c160a (patch)
treef7b1c23fd5af0385985ae3a2e3abf558ec5bc0f6 /conf.d/autobuild/linux
parentd00d127abd72f632b36db1619f6282a8e5c61798 (diff)
Update HTML test page to new template. Added Config file selection from UI.
Diffstat (limited to 'conf.d/autobuild/linux')
-rwxr-xr-xconf.d/autobuild/linux/autobuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/conf.d/autobuild/linux/autobuild b/conf.d/autobuild/linux/autobuild
index 31e29f7..759f6be 100755
--- a/conf.d/autobuild/linux/autobuild
+++ b/conf.d/autobuild/linux/autobuild
@@ -16,10 +16,24 @@
THISFILE := $(lastword $(MAKEFILE_LIST))
BUILD_DIR := $(abspath $(dir $(THISFILE)/../../../../..)/build)
+DEST := ${BUILD_DIR}/target
-.PHONY: all clean distclean configure build package
+.PHONY: all clean distclean configure build package help
-all: build
+all: help
+
+help:
+ @echo "List of targets available:"
+ @echo ""
+ @echo "- all"
+ @echo "- clean"
+ @echo "- distclean"
+ @echo "- configure"
+ @echo "- build"
+ @echo "- package"
+ @echo ""
+ @echo "Usage: ./conf.d/autobuild/agl/autobuild package DEST=${HOME}/opt"
+ @echo "Don't use your build dir as DEST as wgt file is generated at this location"
clean:
@([ -d ${BUILD_DIR} ] && make -C ${BUILD_DIR} clean) || echo Nothing to clean
@@ -38,9 +52,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}