-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
134 lines (93 loc) · 2.66 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Wed 26 Jun 02:34:05 UTC 2024
# Wed 26 Jun 01:09:50 UTC 2024
# Sun 23 Jun 12:58:54 UTC 2024
# Thu 20 Jun 16:19:49 UTC 2024
# all: verbose
# all: clear_semaphores terse
# https://stackoverflow.com/questions/13229071/pass-arguments-in-shell-script-from-a-makefile-and-get-back-the-results
CURRENT=sketch_jun30b
# $(CURRENT)
all: clear_semaphores troubling
.PHONY: all
strange:
@git ls-files -o
clear_semaphores:
@rm -rf ./.semaphore*
@> .semaphore-clear_semaphores
@echo clear_semaphores_done
@./scripts.d/banner.sh
@./scripts.d/stall.sh
verbose: clean compile_verbose
@sha1sum ./CURRENT.d/test-aa.ino.elf
troubling: clean compile_troubling
.PHONY: troubling
terse: clean compile_non_verbose
@sha1sum ./CURRENT.d/test-aa.ino.elf
wtf_terse: clean compile_only
@echo COMPILE ONLY
@sha1sum ./CURRENT.d/test-aa.ino.elf
terminal:
@./scripts.d/cf-8051c
# install:
upload:
@cd $(CURRENT); $(MAKE) upload
# @cd sketch_jun30b; $(MAKE) upload
# @./upload.sh
compile_verbose:
@echo COMPILE VERBOSE
@cat ./scripts.d/compile_verbose.sh | sh
esc_char:
@echo -n \\033
# @$(MAKE) -f $(THIS_FILE) .compile_non_verbose
compile_troubling:
@$(MAKE) -s .compile_non_verbose
@date
@$(MAKE) -s .begin
@echo -n ' compiling.. '
@cat ./scripts.d/compile_verbose.sh | sh | cat -n
@$(MAKE) -s .end
@date
compile_non_verbose:
@$(MAKE) -s .compile_non_verbose
@date
@$(MAKE) -s .begin
@echo -n ' compiling.. '
@cat ./scripts.d/compile_verbose.sh | sh > /dev/null
@$(MAKE) -s .end
@date
compile_only:
@echo COMPILE ONLY
@./compile.sh
board:
@arduino-cli board listall | ag 552
board_details:
@arduino-cli board details --fqbn CH55xDuino:mcs51:ch552
comm:
./cf-fastpico9t-esp32-vsc.sh /dev/ttyACM0
#@git submodule add https://github.com/DeqingSun/ch55xduino.git tool/ch55xduino
git_subm_a:
@git submodule add https://github.com/CharleyShattuck/Feather-M0-interpreter.git src/interpret
# find all tabs and remove them in the status, to help form .gitignore entries
git_status:
@git status | cat | tr -d '\t'
pwd:
@echo -n ' ..'
@pwd | cut -b 27-
clean: .clean
rm -rf /tmp/arduino/cores ; rm -rf /tmp/arduino/sketches
@> .semaphore-clean
distclean: .distclean
@echo 'make clean' | sh > /dev/null
# ---- messages ----
.end:
@echo -e '\033\033[0;1;34m[\033[0;33mend.\033[0m\033[0;1;34m]\033[0m'
.begin:
@echo -e '\033[0;1;34m[\033[0;33mbegin..\033[0m\033[0;1;34m]\033[0m'
.compile_non_verbose:
@echo -e '\033[0;1;34m[\033[0;33mcompile non-verbose\033[0m\033[0;1;34m]\033[0m'
.clean:
@echo -e '\033[0;1;34m[\033[0;33mclean\033[0m\033[0;1;34m]\033[0m'
.distclean:
@echo -e '\033[0;1;34m[\033[0;33mdistclean\033[0m\033[0;1;34m]\033[0m'
@> .semaphore-distclean
# end.