-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
40 lines (30 loc) · 1.15 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
PORT=/dev/ttyUSB0
NAME=NodeMCU-Shell
BACKUP=${NAME}-`date +%F`.tar.gz
all::
@echo "make upload_all upload_shell upload_shell_core console terminal"
upload_all::
nodemcu-tool --port ${PORT} upload --keeppath *.lua */*.lua */*.txt */*.conf */*.dist display/*.mono www/imgs/* www/*.html www/favicon.ico.gz
nodemcu-tool --port ${PORT} upload --keeppath beep/*.song beep/rtttl/0071.txt
nodemcu-tool --port ${PORT} upload --keeppath --minify --compile shell/main.lua
touch .lastupload
upload_shell::
nodemcu-tool --port ${PORT} upload --keeppath shell/*.lua shell/*.txt
nodemcu-tool --port ${PORT} upload --keeppath --minify --compile shell/main.lua
touch .lastupload
upload_shell_core::
nodemcu-tool --port ${PORT} upload --keeppath --minify --compile shell/main.lua
touch .lastupload
upload_new::
find -newer .lastupload | xargs nodemcu-tool --port ${PORT} upload --keeppath
touch .lastupload
console::
nodemcu-tool --port ${PORT} terminal
terminal::
nodemcu-tool --port ${PORT} terminal
# -- developer only:
edit::
dee4 README.md Makefile *.lua */*.lua
backup::
cd ..; tar cfvz ${BACKUP} ${NAME}; mv ${BACKUP} ~/Backup/
scp ~/Backup/${BACKUP} backup:Backup/