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}