X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=autobuild%2Fagl%2Fautobuild.in;h=759f6be4b05b07e224ddc6c21333aa2893b309af;hb=5b4dfe23ef1141d8f7595a157ca7a8ee5ad8ad07;hp=dd341c4a711d1695ffc1067b8104390ed07550ca;hpb=fe3c86e6407ae45d7b5ab72df7911daa426caba8;p=staging%2Fxdg-launcher.git diff --git a/autobuild/agl/autobuild.in b/autobuild/agl/autobuild.in index dd341c4..759f6be 100755 --- a/autobuild/agl/autobuild.in +++ b/autobuild/agl/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,8 @@ 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 widget - @cp ${BUILD_DIR}/*wgt ${DEST} + @mkdir -p ${DEST} && cp ${BUILD_DIR}/*wgt ${DEST} ${BUILD_DIR}/Makefile: @[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}