Makefile 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. rbm=./rbm/rbm
  2. all: torbrowser-release
  3. #######################
  4. # Tor Browser Targets #
  5. #######################
  6. torbrowser-release: submodule-update
  7. $(rbm) build release --target release --target browser-all --target torbrowser
  8. torbrowser-release-android: submodule-update
  9. $(rbm) build release --target release --target browser-all-android --target torbrowser
  10. torbrowser-release-android-armv7: submodule-update
  11. $(rbm) build release --target release --target browser-android-armv7 --target torbrowser
  12. torbrowser-release-android-x86: submodule-update
  13. $(rbm) build release --target release --target browser-android-x86 --target torbrowser
  14. torbrowser-release-android-x86_64: submodule-update
  15. $(rbm) build release --target release --target browser-android-x86_64 --target torbrowser
  16. torbrowser-release-android-aarch64: submodule-update
  17. $(rbm) build release --target release --target browser-android-aarch64 --target torbrowser
  18. torbrowser-release-desktop: submodule-update
  19. $(rbm) build release --target release --target browser-all-desktop --target torbrowser
  20. torbrowser-release-linux-x86_64: submodule-update
  21. $(rbm) build release --target release --target browser-linux-x86_64 --target torbrowser
  22. torbrowser-release-linux-x86_64-asan: submodule-update
  23. $(rbm) build release --target release --target browser-linux-x86_64-asan --target torbrowser
  24. torbrowser-release-linux-i686: submodule-update
  25. $(rbm) build release --target release --target browser-linux-i686 --target torbrowser
  26. torbrowser-release-linux-arm: submodule-update
  27. $(rbm) build release --target release --target browser-linux-arm --target torbrowser
  28. torbrowser-release-windows-i686: submodule-update
  29. $(rbm) build release --target release --target browser-windows-i686 --target torbrowser
  30. torbrowser-release-windows-x86_64: submodule-update
  31. $(rbm) build release --target release --target browser-windows-x86_64 --target torbrowser
  32. torbrowser-release-osx-x86_64: submodule-update
  33. $(rbm) build release --target release --target browser-osx-x86_64 --target torbrowser
  34. torbrowser-release-src: submodule-update
  35. $(rbm) build release --target release --target browser-src --target torbrowser
  36. torbrowser-alpha: submodule-update
  37. $(rbm) build release --target alpha --target browser-all --target torbrowser
  38. torbrowser-alpha-android: submodule-update
  39. $(rbm) build release --target alpha --target browser-all-android --target torbrowser
  40. torbrowser-alpha-android-armv7: submodule-update
  41. $(rbm) build release --target alpha --target browser-android-armv7 --target torbrowser
  42. torbrowser-alpha-android-x86: submodule-update
  43. $(rbm) build release --target alpha --target browser-android-x86 --target torbrowser
  44. torbrowser-alpha-android-x86_64: submodule-update
  45. $(rbm) build release --target alpha --target browser-android-x86_64 --target torbrowser
  46. torbrowser-alpha-android-aarch64: submodule-update
  47. $(rbm) build release --target alpha --target browser-android-aarch64 --target torbrowser
  48. torbrowser-alpha-desktop: submodule-update
  49. $(rbm) build release --target alpha --target browser-all-desktop --target torbrowser
  50. torbrowser-alpha-linux-x86_64: submodule-update
  51. $(rbm) build release --target alpha --target browser-linux-x86_64 --target torbrowser
  52. torbrowser-alpha-linux-x86_64-asan: submodule-update
  53. $(rbm) build release --target alpha --target browser-linux-x86_64-asan --target torbrowser
  54. torbrowser-alpha-linux-i686: submodule-update
  55. $(rbm) build release --target alpha --target browser-linux-i686 --target torbrowser
  56. torbrowser-alpha-linux-arm: submodule-update
  57. $(rbm) build release --target alpha --target browser-linux-arm --target torbrowser
  58. torbrowser-alpha-windows-i686: submodule-update
  59. $(rbm) build release --target alpha --target browser-windows-i686 --target torbrowser
  60. torbrowser-alpha-windows-x86_64: submodule-update
  61. $(rbm) build release --target alpha --target browser-windows-x86_64 --target torbrowser
  62. torbrowser-alpha-osx-x86_64: submodule-update
  63. $(rbm) build release --target alpha --target browser-osx-x86_64 --target torbrowser
  64. torbrowser-alpha-src: submodule-update
  65. $(rbm) build release --target alpha --target browser-src --target torbrowser
  66. torbrowser-nightly: submodule-update
  67. $(rbm) build release --target nightly --target browser-all --target torbrowser
  68. torbrowser-nightly-android: submodule-update
  69. $(rbm) build release --target nightly --target browser-all-android --target torbrowser
  70. torbrowser-nightly-android-armv7: submodule-update
  71. $(rbm) build release --target nightly --target browser-android-armv7 --target torbrowser
  72. torbrowser-nightly-android-x86: submodule-update
  73. $(rbm) build release --target nightly --target browser-android-x86 --target torbrowser
  74. torbrowser-nightly-android-x86_64: submodule-update
  75. $(rbm) build release --target nightly --target browser-android-x86_64 --target torbrowser
  76. torbrowser-nightly-android-aarch64: submodule-update
  77. $(rbm) build release --target nightly --target browser-android-aarch64 --target torbrowser
  78. torbrowser-nightly-desktop: submodule-update
  79. $(rbm) build release --target nightly --target browser-all-desktop --target torbrowser
  80. torbrowser-nightly-linux-x86_64: submodule-update
  81. $(rbm) build release --target nightly --target browser-linux-x86_64 --target torbrowser
  82. torbrowser-nightly-linux-x86_64-asan: submodule-update
  83. $(rbm) build release --target nightly --target browser-linux-x86_64-asan --target torbrowser
  84. torbrowser-nightly-linux-i686: submodule-update
  85. $(rbm) build release --target nightly --target browser-linux-i686 --target torbrowser
  86. torbrowser-nightly-linux-arm: submodule-update
  87. $(rbm) build release --target nightly --target browser-linux-arm --target torbrowser
  88. torbrowser-nightly-windows-i686: submodule-update
  89. $(rbm) build release --target nightly --target browser-windows-i686 --target torbrowser
  90. torbrowser-nightly-windows-x86_64: submodule-update
  91. $(rbm) build release --target nightly --target browser-windows-x86_64 --target torbrowser
  92. torbrowser-nightly-osx-x86_64: submodule-update
  93. $(rbm) build release --target nightly --target browser-osx-x86_64 --target torbrowser
  94. torbrowser-nightly-src: submodule-update
  95. $(rbm) build release --target nightly --target browser-src --target torbrowser
  96. torbrowser-testbuild: submodule-update
  97. $(rbm) build release --target testbuild --target browser-all --target torbrowser
  98. torbrowser-testbuild-android: submodule-update
  99. $(rbm) build release --target testbuild --target browser-all-android --target torbrowser
  100. torbrowser-testbuild-android-armv7: submodule-update
  101. $(rbm) build release --target testbuild --target browser-android-armv7 --target torbrowser
  102. torbrowser-testbuild-android-x86: submodule-update
  103. $(rbm) build release --target testbuild --target browser-android-x86 --target torbrowser
  104. torbrowser-testbuild-android-x86_64: submodule-update
  105. $(rbm) build release --target testbuild --target browser-android-x86_64 --target torbrowser
  106. torbrowser-testbuild-android-aarch64: submodule-update
  107. $(rbm) build release --target testbuild --target browser-android-aarch64 --target torbrowser
  108. torbrowser-testbuild-desktop: submodule-update
  109. $(rbm) build release --target testbuild --target browser-all-desktop --target torbrowser
  110. torbrowser-testbuild-linux-x86_64: submodule-update
  111. $(rbm) build release --target testbuild --target browser-linux-x86_64 --target torbrowser
  112. torbrowser-testbuild-linux-x86_64-asan: submodule-update
  113. $(rbm) build release --target testbuild --target browser-linux-x86_64-asan --target torbrowser
  114. torbrowser-testbuild-linux-i686: submodule-update
  115. $(rbm) build release --target testbuild --target browser-linux-i686 --target torbrowser
  116. torbrowser-testbuild-linux-arm: submodule-update
  117. $(rbm) build release --target testbuild --target browser-linux-arm --target torbrowser
  118. torbrowser-testbuild-windows-x86_64: submodule-update
  119. $(rbm) build release --target testbuild --target browser-windows-x86_64 --target torbrowser
  120. torbrowser-testbuild-windows-i686: submodule-update
  121. $(rbm) build release --target testbuild --target browser-windows-i686 --target torbrowser
  122. torbrowser-testbuild-osx-x86_64: submodule-update
  123. $(rbm) build release --target testbuild --target browser-osx-x86_64 --target torbrowser
  124. torbrowser-testbuild-src: submodule-update
  125. $(rbm) build release --target testbuild --target browser-src-testbuild --target torbrowser
  126. signtag-release: submodule-update
  127. $(rbm) build release --step signtag --target release
  128. signtag-alpha: submodule-update
  129. $(rbm) build release --step signtag --target alpha
  130. incrementals-release: submodule-update
  131. $(rbm) build release --step update_responses_config --target release --target create_unsigned_incrementals
  132. tools/update-responses/download_missing_versions release
  133. tools/update-responses/gen_incrementals release
  134. $(rbm) build release --step hash_incrementals --target release
  135. incrementals-alpha: submodule-update
  136. $(rbm) build release --step update_responses_config --target alpha --target create_unsigned_incrementals
  137. tools/update-responses/download_missing_versions alpha
  138. tools/update-responses/gen_incrementals alpha
  139. $(rbm) build release --step hash_incrementals --target alpha
  140. incrementals-nightly: submodule-update
  141. $(rbm) build release --step update_responses_config --target nightly
  142. NO_CODESIGNATURE=1 tools/update-responses/gen_incrementals nightly
  143. $(rbm) build release --step hash_incrementals --target nightly
  144. update_responses-release: submodule-update
  145. $(rbm) build release --step update_responses_config --target release --target signed
  146. $(rbm) build release --step create_update_responses_tar --target release --target signed
  147. update_responses-alpha: submodule-update
  148. $(rbm) build release --step update_responses_config --target alpha --target signed
  149. $(rbm) build release --step create_update_responses_tar --target alpha --target signed
  150. dmg2mar-release: submodule-update
  151. $(rbm) build release --step update_responses_config --target release --target signed
  152. $(rbm) build release --step dmg2mar --target release --target signed
  153. tools/update-responses/download_missing_versions release
  154. CHECK_CODESIGNATURE_EXISTS=1 MAR_SKIP_EXISTING=1 tools/update-responses/gen_incrementals release
  155. dmg2mar-alpha: submodule-update
  156. $(rbm) build release --step update_responses_config --target alpha --target signed
  157. $(rbm) build release --step dmg2mar --target alpha --target signed
  158. tools/update-responses/download_missing_versions alpha
  159. CHECK_CODESIGNATURE_EXISTS=1 MAR_SKIP_EXISTING=1 tools/update-responses/gen_incrementals alpha
  160. list_toolchain_updates-fenix: submodule-update
  161. $(rbm) build fenix --step list_toolchain_updates --target nightly --target torbrowser-android-armv7
  162. list_toolchain_updates-firefox-linux: submodule-update
  163. $(rbm) build firefox --step list_toolchain_updates --target nightly --target torbrowser-linux-x86_64
  164. list_toolchain_updates-firefox-windows: submodule-update
  165. $(rbm) build firefox --step list_toolchain_updates --target nightly --target torbrowser-windows-x86_64
  166. list_toolchain_updates-firefox-macos: submodule-update
  167. $(rbm) build firefox --step list_toolchain_updates --target nightly --target torbrowser-osx-x86_64
  168. list_toolchain_updates-android-components: submodule-update
  169. $(rbm) build android-components --step list_toolchain_updates --target nightly --target torbrowser-android-armv7
  170. list_toolchain_updates-application-services: submodule-update
  171. $(rbm) build application-services --step list_toolchain_updates --target nightly --target torbrowser-android-armv7
  172. list_toolchain_updates-geckoview: submodule-update
  173. $(rbm) build geckoview --step list_toolchain_updates --target nightly --target torbrowser-android-armv7
  174. create_glean_deps_tarball: submodule-update
  175. $(rbm) build glean --step create_glean_deps_tarball --target alpha --target torbrowser-android-armv7
  176. create_glean_deps_tarball-with_torsocks: submodule-update
  177. $(rbm) build glean --step create_glean_deps_tarball --target alpha --target torbrowser-android-armv7 --target with_torsocks
  178. get_gradle_dependencies_list-fenix: submodule-update
  179. $(rbm) build fenix --step get_gradle_dependencies_list --target nightly --target torbrowser-android-armv7
  180. get_gradle_dependencies_list-application-services: submodule-update
  181. $(rbm) build application-services --step get_gradle_dependencies_list --target nightly --target torbrowser-android-armv7
  182. get_gradle_dependencies_list-android-components: submodule-update
  183. $(rbm) build android-components --step get_gradle_dependencies_list --target nightly --target torbrowser-android-armv7
  184. cargo_vendor-application-services: submodule-update
  185. $(rbm) build application-services --step cargo_vendor --target nightly --target torbrowser-android-armv7
  186. cargo_vendor-cbindgen-android: submodule-update
  187. $(rbm) build cbindgen --step cargo_vendor --target nightly --target torbrowser-android-armv7
  188. cargo_vendor-cbindgen: submodule-update
  189. $(rbm) build cbindgen --step cargo_vendor --target nightly --target torbrowser-linux-x86_64
  190. cargo_vendor-lucetc: submodule-update
  191. $(rbm) build lucetc --step cargo_vendor --target nightly --target torbrowser-linux-x86_64
  192. cargo_vendor-uniffi-rs: submodule-update
  193. $(rbm) build uniffi-rs --step cargo_vendor --target nightly --target torbrowser-linux-x86_64
  194. ########################
  195. # Base Browser Targets #
  196. ########################
  197. basebrowser-release: submodule-update
  198. $(rbm) build release --target release --target browser-all --target basebrowser
  199. basebrowser-release-android: submodule-update
  200. $(rbm) build release --target release --target browser-all-android --target basebrowser
  201. basebrowser-release-android-armv7: submodule-update
  202. $(rbm) build release --target release --target browser-android-armv7 --target basebrowser
  203. basebrowser-release-android-x86: submodule-update
  204. $(rbm) build release --target release --target browser-android-x86 --target basebrowser
  205. basebrowser-release-android-x86_64: submodule-update
  206. $(rbm) build release --target release --target browser-android-x86_64 --target basebrowser
  207. basebrowser-release-android-aarch64: submodule-update
  208. $(rbm) build release --target release --target browser-android-aarch64 --target basebrowser
  209. basebrowser-release-desktop: submodule-update
  210. $(rbm) build release --target release --target browser-all-desktop --target basebrowser
  211. basebrowser-release-linux-x86_64: submodule-update
  212. $(rbm) build release --target release --target browser-linux-x86_64 --target basebrowser
  213. basebrowser-release-linux-x86_64-asan: submodule-update
  214. $(rbm) build release --target release --target browser-linux-x86_64-asan --target basebrowser
  215. basebrowser-release-linux-i686: submodule-update
  216. $(rbm) build release --target release --target browser-linux-i686 --target basebrowser
  217. basebrowser-release-linux-arm: submodule-update
  218. $(rbm) build release --target release --target browser-linux-arm --target basebrowser
  219. basebrowser-release-windows-i686: submodule-update
  220. $(rbm) build release --target release --target browser-windows-i686 --target basebrowser
  221. basebrowser-release-windows-x86_64: submodule-update
  222. $(rbm) build release --target release --target browser-windows-x86_64 --target basebrowser
  223. basebrowser-release-osx-x86_64: submodule-update
  224. $(rbm) build release --target release --target browser-osx-x86_64 --target basebrowser
  225. basebrowser-release-src: submodule-update
  226. $(rbm) build release --target release --target browser-src --target basebrowser
  227. basebrowser-alpha: submodule-update
  228. $(rbm) build release --target alpha --target browser-all --target basebrowser
  229. basebrowser-alpha-android: submodule-update
  230. $(rbm) build release --target alpha --target browser-all-android --target basebrowser
  231. basebrowser-alpha-android-armv7: submodule-update
  232. $(rbm) build release --target alpha --target browser-android-armv7 --target basebrowser
  233. basebrowser-alpha-android-x86: submodule-update
  234. $(rbm) build release --target alpha --target browser-android-x86 --target basebrowser
  235. basebrowser-alpha-android-x86_64: submodule-update
  236. $(rbm) build release --target alpha --target browser-android-x86_64 --target basebrowser
  237. basebrowser-alpha-android-aarch64: submodule-update
  238. $(rbm) build release --target alpha --target browser-android-aarch64 --target basebrowser
  239. basebrowser-alpha-desktop: submodule-update
  240. $(rbm) build release --target alpha --target browser-all-desktop --target basebrowser
  241. basebrowser-alpha-linux-x86_64: submodule-update
  242. $(rbm) build release --target alpha --target browser-linux-x86_64 --target basebrowser
  243. basebrowser-alpha-linux-x86_64-asan: submodule-update
  244. $(rbm) build release --target alpha --target browser-linux-x86_64-asan --target basebrowser
  245. basebrowser-alpha-linux-i686: submodule-update
  246. $(rbm) build release --target alpha --target browser-linux-i686 --target basebrowser
  247. basebrowser-alpha-linux-arm: submodule-update
  248. $(rbm) build release --target alpha --target browser-linux-arm --target basebrowser
  249. basebrowser-alpha-windows-i686: submodule-update
  250. $(rbm) build release --target alpha --target browser-windows-i686 --target basebrowser
  251. basebrowser-alpha-windows-x86_64: submodule-update
  252. $(rbm) build release --target alpha --target browser-windows-x86_64 --target basebrowser
  253. basebrowser-alpha-osx-x86_64: submodule-update
  254. $(rbm) build release --target alpha --target browser-osx-x86_64 --target basebrowser
  255. basebrowser-alpha-src: submodule-update
  256. $(rbm) build release --target alpha --target browser-src --target basebrowser
  257. basebrowser-nightly: submodule-update
  258. $(rbm) build release --target nightly --target browser-all --target basebrowser
  259. basebrowser-nightly-android: submodule-update
  260. $(rbm) build release --target nightly --target browser-all-android --target basebrowser
  261. basebrowser-nightly-android-armv7: submodule-update
  262. $(rbm) build release --target nightly --target browser-android-armv7 --target basebrowser
  263. basebrowser-nightly-android-x86: submodule-update
  264. $(rbm) build release --target nightly --target browser-android-x86 --target basebrowser
  265. basebrowser-nightly-android-x86_64: submodule-update
  266. $(rbm) build release --target nightly --target browser-android-x86_64 --target basebrowser
  267. basebrowser-nightly-android-aarch64: submodule-update
  268. $(rbm) build release --target nightly --target browser-android-aarch64 --target basebrowser
  269. basebrowser-nightly-desktop: submodule-update
  270. $(rbm) build release --target nightly --target browser-all-desktop --target basebrowser
  271. basebrowser-nightly-linux-x86_64: submodule-update
  272. $(rbm) build release --target nightly --target browser-linux-x86_64 --target basebrowser
  273. basebrowser-nightly-linux-x86_64-asan: submodule-update
  274. $(rbm) build release --target nightly --target browser-linux-x86_64-asan --target basebrowser
  275. basebrowser-nightly-linux-i686: submodule-update
  276. $(rbm) build release --target nightly --target browser-linux-i686 --target basebrowser
  277. basebrowser-nightly-linux-arm: submodule-update
  278. $(rbm) build release --target nightly --target browser-linux-arm --target basebrowser
  279. basebrowser-nightly-windows-i686: submodule-update
  280. $(rbm) build release --target nightly --target browser-windows-i686 --target basebrowser
  281. basebrowser-nightly-windows-x86_64: submodule-update
  282. $(rbm) build release --target nightly --target browser-windows-x86_64 --target basebrowser
  283. basebrowser-nightly-osx-x86_64: submodule-update
  284. $(rbm) build release --target nightly --target browser-osx-x86_64 --target basebrowser
  285. basebrowser-nightly-src: submodule-update
  286. $(rbm) build release --target nightly --target browser-src --target basebrowser
  287. basebrowser-testbuild: submodule-update
  288. $(rbm) build release --target testbuild --target browser-all --target basebrowser
  289. basebrowser-testbuild-android: submodule-update
  290. $(rbm) build release --target testbuild --target browser-all-android --target basebrowser
  291. basebrowser-testbuild-android-armv7: submodule-update
  292. $(rbm) build release --target testbuild --target browser-android-armv7 --target basebrowser
  293. basebrowser-testbuild-android-x86: submodule-update
  294. $(rbm) build release --target testbuild --target browser-android-x86 --target basebrowser
  295. basebrowser-testbuild-android-x86_64: submodule-update
  296. $(rbm) build release --target testbuild --target browser-android-x86_64 --target basebrowser
  297. basebrowser-testbuild-android-aarch64: submodule-update
  298. $(rbm) build release --target testbuild --target browser-android-aarch64 --target basebrowser
  299. basebrowser-testbuild-desktop: submodule-update
  300. $(rbm) build release --target testbuild --target browser-all-desktop --target basebrowser
  301. basebrowser-testbuild-linux-x86_64: submodule-update
  302. $(rbm) build release --target testbuild --target browser-linux-x86_64 --target basebrowser
  303. basebrowser-testbuild-linux-x86_64-asan: submodule-update
  304. $(rbm) build release --target testbuild --target browser-linux-x86_64-asan --target basebrowser
  305. basebrowser-testbuild-linux-i686: submodule-update
  306. $(rbm) build release --target testbuild --target browser-linux-i686 --target basebrowser
  307. basebrowser-testbuild-linux-arm: submodule-update
  308. $(rbm) build release --target testbuild --target browser-linux-arm --target basebrowser
  309. basebrowser-testbuild-windows-x86_64: submodule-update
  310. $(rbm) build release --target testbuild --target browser-windows-x86_64 --target basebrowser
  311. basebrowser-testbuild-windows-i686: submodule-update
  312. $(rbm) build release --target testbuild --target browser-windows-i686 --target basebrowser
  313. basebrowser-testbuild-osx-x86_64: submodule-update
  314. $(rbm) build release --target testbuild --target browser-osx-x86_64 --target basebrowser
  315. basebrowser-testbuild-src: submodule-update
  316. $(rbm) build release --target testbuild --target browser-src-testbuild --target basebrowser
  317. ##################
  318. # Common Targets #
  319. ##################
  320. submodule-update:
  321. git submodule update --init
  322. fetch: submodule-update
  323. $(rbm) fetch
  324. clean: submodule-update
  325. ./tools/clean-old
  326. clean-dry-run: submodule-update
  327. ./tools/clean-old --dry-run