Skip to content

Commit

Permalink
build: Add iotjs check
Browse files Browse the repository at this point in the history
Change-Id: I0084c1bd5204c5f424ed3bf118c9239efcd129f8
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Feb 27, 2019
1 parent 9d58aad commit 96d0ce4
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 *~
Expand All @@ -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}
Expand Down

0 comments on commit 96d0ce4

Please sign in to comment.