forked from blueprint-freespeech/ricochet-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
135 lines (94 loc) · 4.11 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
135
rbm=./rbm/rbm
##################
# Common Targets #
##################
submodule-update:
git submodule update --init
clean:
./rbm/container run -- rm -Rf ./tmp/rbm-*
rm -rf ./logs
rm -rf /var/tmp/${USER}
#################
# Build Targets #
#################
# Stable Releases
ricochet-linux-stable:
$(MAKE) ricochet-linux-i686-stable
$(MAKE) ricochet-linux-x86_64-stable
ricochet-linux-i686-stable: submodule-update
$(rbm) build package --target linux --target linux-i686 --target stable
ricochet-linux-x86_64-stable: submodule-update
$(rbm) build package --target linux --target linux-x86_64 --target stable
ricochet-macos-stable:
$(MAKE) ricochet-macos-x86_64-stable
$(MAKE) ricochet-macos-aarch64-stable
ricochet-macos-x86_64-stable: submodule-update
$(rbm) build package --target macos --target macos-x86_64 --target stable
ricochet-macos-aarch64-stable: submodule-update
$(rbm) build package --target macos --target macos-aarch64 --target stable
ricochet-windows-stable:
$(MAKE) ricochet-windows-i686-stable
$(MAKE) ricochet-windows-x86_64-stable
ricochet-windows-i686-stable: submodule-update
$(rbm) build package --target windows --target windows-i686 --target stable
ricochet-windows-x86_64-stable: submodule-update
$(rbm) build package --target windows --target windows-x86_64 --target stable
ricochet-release-stable: submodule-update
$(rbm) build release --target stable
ricochet-release-stable-sign: submodule-update
$(rbm) build release --target stable --target sign
# Alpha Releases
ricochet-linux-alpha:
$(MAKE) ricochet-linux-i686-alpha
$(MAKE) ricochet-linux-x86_64-alpha
ricochet-linux-i686-alpha: submodule-update
$(rbm) build package --target linux --target linux-i686 --target alpha
ricochet-linux-x86_64-alpha: submodule-update
$(rbm) build package --target linux --target linux-x86_64 --target alpha
ricochet-macos-alpha:
$(MAKE) ricochet-macos-x86_64-alpha
$(MAKE) ricochet-macos-aarch64-alpha
ricochet-macos-x86_64-alpha: submodule-update
$(rbm) build package --target macos --target macos-x86_64 --target alpha
ricochet-macos-aarch64-alpha: submodule-update
$(rbm) build package --target macos --target macos-aarch64 --target alpha
ricochet-windows-alpha:
$(MAKE) ricochet-windows-i686-alpha
$(MAKE) ricochet-windows-x86_64-alpha
ricochet-windows-i686-alpha: submodule-update
$(rbm) build package --target windows --target windows-i686 --target alpha
ricochet-windows-x86_64-alpha: submodule-update
$(rbm) build package --target windows --target windows-x86_64 --target alpha
ricochet-release-alpha: submodule-update
$(rbm) build release --target alpha
ricochet-release-alpha-sign: submodule-update
$(rbm) build release --target alpha --target sign
# Dev Builds
ricochet-linux-testbuild:
$(MAKE) ricochet-linux-i686-testbuild
$(MAKE) ricochet-linux-x86_64-testbuild
ricochet-linux-i686-testbuild: submodule-update
$(rbm) build package --target linux --target linux-i686 --target testbuild
ricochet-linux-x86_64-testbuild: submodule-update
$(rbm) build package --target linux --target linux-x86_64 --target testbuild
ricochet-macos-testbuild:
$(MAKE) ricochet-macos-x86_64-testbuild
$(MAKE) ricochet-macos-aarch64-testbuild
ricochet-macos-x86_64-testbuild: submodule-update
$(rbm) build package --target macos --target macos-x86_64 --target testbuild
ricochet-macos-aarch64-testbuild: submodule-update
$(rbm) build package --target macos --target macos-aarch64 --target testbuild
ricochet-windows-testbuild:
$(MAKE) ricochet-windows-i686-testbuild
$(MAKE) ricochet-windows-x86_64-testbuild
ricochet-windows-i686-testbuild: submodule-update
$(rbm) build package --target windows --target windows-i686 --target testbuild
ricochet-windows-x86_64-testbuild: submodule-update
$(rbm) build package --target windows --target windows-x86_64 --target testbuild
ricochet-release-testbuild: submodule-update
$(rbm) build release --target testbuild
# Git Sign+Tag
ricochet-signtag-stable:
VERSION=$(shell ./rbm/rbm showconf release "version" --target stable); \
BUILDN=$(shell ./rbm/rbm showconf release "var/build" --target stable); \
git tag -s "$$VERSION-$$BUILDN" -m "tagging $$VERSION-$$BUILDN" HEAD