-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
63 lines (47 loc) · 1.13 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/make -f
# -*- makefile -*-
# SPDX-License-Identifier: MPL-2.0
#{
# Copyright 2019-present Samsung Electronics France SAS, and other contributors
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/#
#}
default: help
@echo "log: $@: $^"
project?=webthing-aframe
runtime?=node
example_file=index.js
port?=8880
view_url?=http://localhost:${port}?verbose=yes&useWs=no
browser?=x-www-browser
%: ${runtime}/%
@echo "# log: $@: $^"
help:
@echo "# Usage:"
@echo "# make runtime=${runtime} start"
LICENSE: /usr/share/common-licenses/MPL-2.0
cp -a $< $@
node/start: ${example_file} node_modules
PORT=${port} node $<
setup:
@echo "# log: $@: $^"
check:
@echo "# log: $@: $^"
test:
@echo "# log: $@: $^"
node_modules:
npm install
modules: ${node_modules}
ls $^
start: ${runtime}/start
@echo "# log: $@: $^"
demo:
xterm -e make -C example/webthing-node start &
@sleep 1
xterm -e make -C example/webthing-node demo &
@sleep 1
xterm -e make start &
@sleep 1
${browser} "${view_url}"