Skip to content

Commit b9a5726

Browse files
committed
Rebuild MV3 extension if mv3-data content changes
1 parent 3f850db commit b9a5726

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ run_options := $(filter-out $@,$(MAKECMDGOALS))
88
sources := $(wildcard assets/* assets/*/* dist/version src/* src/*/* src/*/*/* src/*/*/*/*)
99
platform := $(wildcard platform/* platform/*/* platform/*/*/* platform/*/*/*/* platform/*/*/*/*/*)
1010
assets := dist/build/uAssets
11+
mv3-data := $(wildcard dist/build/mv3-data/*)
1112

1213
all: chromium firefox npm
1314

@@ -61,20 +62,20 @@ dig: dist/build/uBlock0.dig
6162
dig-snfe: dig
6263
cd dist/build/uBlock0.dig && npm run snfe $(run_options)
6364

64-
mv3-assets:
65+
dist/build/mv3-data:
6566
mkdir -p dist/build/mv3-data
6667

67-
dist/build/uBOLite.chromium: tools/make-mv3.sh $(sources) $(platform) mv3-assets
68+
dist/build/uBOLite.chromium: tools/make-mv3.sh $(sources) $(platform) $(mv3-data) dist/build/mv3-data
6869
tools/make-mv3.sh chromium
6970

7071
mv3-chromium: dist/build/uBOLite.chromium
7172

72-
dist/build/uBOLite.firefox: tools/make-mv3.sh $(sources) $(platform) mv3-assets
73+
dist/build/uBOLite.firefox: tools/make-mv3.sh $(sources) $(platform) $(mv3-data) dist/build/mv3-data
7374
tools/make-mv3.sh firefox
7475

7576
mv3-firefox: dist/build/uBOLite.firefox
7677

77-
dist/build/uBOLite.edge: tools/make-mv3.sh tools/make-edge.mjs $(sources) $(platform) mv3-assets
78+
dist/build/uBOLite.edge: tools/make-mv3.sh tools/make-edge.mjs $(sources) $(platform) $(mv3-data) dist/build/mv3-data
7879
tools/make-mv3.sh edge
7980

8081
mv3-edge: dist/build/uBOLite.edge

0 commit comments

Comments
 (0)