-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (36 loc) · 803 Bytes
/
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
default:
# python2 -m buildozer
# adb shell input keyevent KEYCODE_WAKEUP
# @echo "Built and deployed"
echo -e '#!/usr/bin/sh\npython2 main.py' > main.py.out
chmod +x ./main.py.out
mdkvfile.kv.out: default
main.py.out: default
# out: main.py mdkvfile.kv buildozer.spec
# python2 -m buildozer
# adb shell input keyevent KEYCODE_WAKEUP
# main.py.out: main.py mdkvfile.kv buildozer.spec
# python2 -m buildozer
# adb shell input keyevent KEYCODE_WAKEUP
# cp main.py main.py.out
# chmod +x main.py.out
%.c.out: %.c
gcc -g -o $@ $< -lrt -lreadline
clean:
rm -rf *.out
%.py.out: %.py
cp $< $@
chmod +x $@
%.pl.out: %.pl
cp $< $@
chmod +x $@
%.sh.out: %.sh
cp $< $@
chmod +x $@
%.s.out: %.o
arm-none-eabi-ld -o $@ $<
%.o: %.s
arm-none-eabi-as -g -o $<.o
%.m.out: %.m
cp $< $@
chmod +x $@