-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
49 lines (41 loc) · 928 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
37
38
39
40
41
42
43
44
45
46
47
48
49
ifeq ($(target),)
target := "all"
endif
ifeq ($(core_src),)
core_src = "src/particl-core"
endif
ifeq ($(ledger_app_src),)
ledger_app_src = "src/ledger-app-particl"
endif
ifeq ($(ledger_emulator_src),)
ledger_emulator_src = "src/speculos"
endif
ifeq ($(trezor_src),)
trezor_src = "src/trezor-firmware"
endif
ifeq ($(node),)
node = 0
endif
ifeq ($(command),)
command = "help"
endif
# Get only the variables with plain names
interesting_variables = target model node command core_src ledger_app_src ledger_emulator_src trezor_src
settings = $(foreach v,$(interesting_variables),$(v)=$($(v)))
init :
$(settings) ./scripts/init.sh
build :
$(settings) ./scripts/build.sh
test :
# $(settings) ./scripts/build.sh
$(settings) ./scripts/test.sh
clean :
$(settings) ./scripts/clean.sh
rpc :
$(settings) ./scripts/rpc.sh
shell :
$(settings) ./scripts/shell.sh
vnc :
$(settings) ./scripts/vnc.sh
echo :
echo '$(settings)'