forked from miroRucka/bh1750
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request miroRucka#26 from abandonware/sandbox/rzr/review/m…
…aster Merge back abandonware changes
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/make -f | ||
# -*- makefile -*- | ||
# SPDX-License-Identifier: MIT | ||
|
||
default: help all | ||
@echo "log: $@: $^" | ||
|
||
tmp_dir ?= tmp | ||
runtime ?= iotjs | ||
export runtime | ||
srcs_dir ?= lib example | ||
srcs ?= $(wildcard *.js | sort | uniq) | ||
|
||
main_src ?= example/index.js | ||
|
||
|
||
help: | ||
@echo "## Usage: " | ||
@echo "# make start" | ||
|
||
setup: setup/${runtime} | ||
|
||
start/%: ${main_src} | ||
${@F} $< ${run_args} | ||
|
||
start: start/${runtime} | ||
|
||
clean: | ||
rm -rf ${tmp_dir} | ||
|
||
cleanall: clean | ||
rm -f *~ | ||
|
||
distclean: cleanall | ||
rm -rf node_modules | ||
|
||
setup/iotjs: ${iotjs_modules_dir} | ||
@echo "Expected to see IoT.js' help" | ||
${@F} --help ||: | ||
ls $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters