From 96d0ce4f0a0412146af2f4f77b01bb0ac9afd5e3 Mon Sep 17 00:00:00 2001
From: Philippe Coval
Date: Wed, 27 Feb 2019 15:36:15 +0100
Subject: [PATCH] build: Add iotjs check
Change-Id: I0084c1bd5204c5f424ed3bf118c9239efcd129f8
Signed-off-by: Philippe Coval
---
Makefile | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 948c83a..97d2cd4 100644
--- a/Makefile
+++ b/Makefile
@@ -17,12 +17,28 @@
# limitations under the License.
#}
+default: build
+
+
+runtime?=iotjs
+srcs?=mastodon-lite.js
+V?=1
+
+
%/run: example/index.js
${@D} $<
-run: iotjs/run
+%/check: ${srcs}
+ ${@D} $<
+
+run: ${runtime}/run
+ @echo "# log: $@: $^"
+
+check: ${runtime}/check
+ @echo "# log: $@: $^"
+
+test: check run
@echo "# log: $@: $^"
-test: run
clean:
rm -rf *~
@@ -33,6 +49,10 @@ cleanall: clean
distclean: cleanall
rm -rf tmp
+setup:
+ @echo "log: Expected iotjs help to be printed"
+ ${runtime} -h ||:
+
rule/npm/version/%: package.json
-git describe --tags
cd example/webthing && npm version ${@F}