summaryrefslogtreecommitdiffstats
path: root/template.d/autobuild/agl
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-18 20:22:06 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-08-21 22:23:55 +0200
commit4d67d060455919313491e904d32eb53b303dc21c (patch)
treed3560b20a516a5b9956e0382c5b2e7657872cca7 /template.d/autobuild/agl
parent3a90fb6f2c4518ebab484cde90919c19456dc04c (diff)
Better OS detection and inclusion per distribution
Change-Id: I6f479353df990eb2ff9030b7427d48bb72f0416f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'template.d/autobuild/agl')
-rwxr-xr-xtemplate.d/autobuild/agl/autobuild.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/template.d/autobuild/agl/autobuild.in b/template.d/autobuild/agl/autobuild.in
index 759f6be..4811441 100755
--- a/template.d/autobuild/agl/autobuild.in
+++ b/template.d/autobuild/agl/autobuild.in
@@ -18,7 +18,7 @@ THISFILE := $(lastword $(MAKEFILE_LIST))
BUILD_DIR := $(abspath $(dir $(THISFILE)/../../../../..)/build)
DEST := ${BUILD_DIR}/target
-.PHONY: all clean distclean configure build package help
+.PHONY: all clean distclean configure build package help update
all: help
@@ -35,6 +35,9 @@ help:
@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"
+update: configure
+ @cmake --build ${BUILD_DIR} --target autobuild
+
clean:
@([ -d ${BUILD_DIR} ] && make -C ${BUILD_DIR} clean) || echo Nothing to clean