forked from betaflight/betaflight-tx-lua-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 762 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
tmp_dirs = \
tmp/SCRIPTS/BF \
tmp/SCRIPTS/TELEMETRY
$(tmp_dirs):
mkdir -p $(tmp_dirs)
VERSION = `git describe --tags --long`
.PHONY: tmp_install
tmp_install: $(tmp_dirs)
cp common/*.lua tmp/SCRIPTS/BF
.PHONY: all
all: X7 X9 Horus
.PHONY: X7
X7: tmp_install
cp X7.lua tmp/SCRIPTS/TELEMETRY/BF.lua
cd tmp && zip ../BFSetup-X7-$(VERSION).zip SCRIPTS/BF/ui.lua SCRIPTS/BF/msp_sp.lua SCRIPTS/TELEMETRY/BF.lua
.PHONY: X9
X9: tmp_install
cp X9.lua tmp/SCRIPTS/TELEMETRY/BF.lua
cd tmp && zip ../BFSetup-X9-$(VERSION).zip SCRIPTS/BF/ui.lua SCRIPTS/BF/msp_sp.lua SCRIPTS/TELEMETRY/BF.lua
.PHONY: Horus
Horus: tmp_install
cp Horus.lua tmp/SCRIPTS/BF.lua
cd tmp && zip ../BFSetup-Horus-$(VERSION).zip SCRIPTS/BF/ui.lua SCRIPTS/BF/msp_sp.lua SCRIPTS/BF.lua