-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
59 lines (42 loc) · 1.7 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
.PHONY: node_deps clean_dist deps clean_deps serve_chromium_mv3 serve_edge serve_edge_mv3 release release_chromium_stable release_chromium_beta release_chromium_canary release_edge build_test_extension clean_releases clean
.DEFAULT_GOAL := release
WEBPACK := ./node_modules/webpack-cli/bin/cli.js
RELEASE_SCRIPT := bash tools/release.bash
node_deps:
npm ci --no-save
clean_dist:
rm -rf dist
deps: node_deps
mkdir -p dist
clean_deps:
rm -rf node_modules
serve_chromium_mv3: deps
$(WEBPACK) --mode development --env browser_target=chromium_mv3 --watch
serve_edge: deps
$(WEBPACK) --mode development --env browser_target=edge --watch
serve_edge_mv3: deps
$(WEBPACK) --mode development --env browser_target=edge_mv3 --watch
release: release_chromium_stable release_chromium_beta release_edge
release_chromium_stable: deps
$(WEBPACK) --mode production --env browser_target=chromium_mv3
$(RELEASE_SCRIPT) -c stable -b chromium_mv3 -f
rm -rf dist/chromium_mv3
release_chromium_beta: deps
$(WEBPACK) --mode production --env browser_target=chromium_mv3
$(RELEASE_SCRIPT) -c beta -b chromium_mv3 -f
rm -rf dist/chromium_mv3
release_chromium_canary: deps
$(WEBPACK) --mode production --env browser_target=chromium_mv3 --env canary
$(RELEASE_SCRIPT) -c canary -b chromium_mv3 -f
rm -rf dist/chromium_mv3
release_edge: deps
$(WEBPACK) --mode production --env browser_target=edge
$(RELEASE_SCRIPT) -c stable -b edge -f
rm -rf dist/edge
# Target to build the extension for webext lint in the Zuul Check Pipeline.
build_test_extension: deps
$(WEBPACK) --mode production --env browser_target=chromium_mv3
$(RELEASE_SCRIPT) -c stable -b chromium_mv3 -f
clean_releases:
rm -rf out
clean: clean_deps clean_dist clean_releases