X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=autobuild%2Flinux%2Fautobuild.in;h=ed3942930a5217524367465a51bf8db88b1009a2;hb=refs%2Ftags%2F3.99.3;hp=c4b55537b25c76a733ccd3dee9e31ae3d17d4b08;hpb=fe3c86e6407ae45d7b5ab72df7911daa426caba8;p=staging%2Fxdg-launcher.git diff --git a/autobuild/linux/autobuild.in b/autobuild/linux/autobuild.in index c4b5553..ed39429 100755 --- a/autobuild/linux/autobuild.in +++ b/autobuild/linux/autobuild.in @@ -14,14 +14,26 @@ # See the License for the specific language governing permissions and # limitations under the License. -BUILD_DIR := @PROJECT_BINARY_DIR@ -PACKAGING_DIR := @PROJECT_PKG_ENTRY_POINT@ - -VPATH = etc:$(PACKAGING_DIR):$(PACKAGING_DIR)/etc:$(BUILD_DIR) - -.PHONY: all clean distclean configure build package - -all: build +THISFILE := $(lastword $(MAKEFILE_LIST)) +BUILD_DIR := $(abspath $(dir $(THISFILE)/../../../../..)/build) +DEST := ${BUILD_DIR}/target + +.PHONY: all clean distclean configure build package help + +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 @@ -40,9 +52,10 @@ package: build @mkdir -p ${BUILD_DIR}/$@/lib @mkdir -p ${BUILD_DIR}/$@/htdocs @mkdir -p ${BUILD_DIR}/$@/data - @mkdir -p ${DEST} @cmake --build ${BUILD_DIR} --target packaging - @cmake --build ${BUILD_DIR} --target all + @cmake --build ${BUILD_DIR} --target widget + @mkdir -p ${DEST} && cp ${BUILD_DIR}/*wgt ${DEST} + ${BUILD_DIR}/Makefile: @[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}