forked from bbx10/node-htu21d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (26 loc) · 752 Bytes
/
Makefile
File metadata and controls
41 lines (26 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/make -f
# -*- makefile -*-
# SPDX-License-Identifier: MIT
default: help all
@echo "log: $@: $^"
tmp_dir ?= tmp
runtime ?= iotjs
export runtime
main_src ?= htudemo.js
iotjs_modules_dir?=${CURDIR}/iotjs_modules
color-sensor-js_url?=https://github.com/rzr/color-sensor-js
color-sensor-js_revision?=v0.0.11
iotjs_modules_dirs+=${iotjs_modules_dir}/color-sensor-js
help:
@echo "## Usage: "
@echo "# make start"
${iotjs_modules_dir}/color-sensor-js:
mkdir -p ${@D}
git clone --recursive --depth 1 ${color-sensor-js_url} -b ${color-sensor-js_revision} $@
-rm -rf ${@}/.git
build:
modules/${runtime}: ${iotjs_modules_dirs}
modules: modules/${runtime}
start/%: ${main_src} build modules
${@F} $< ${run_args}
start: start/${runtime}