From b9a5726672c4d8cad7fdaf98579c7f02de2f3da0 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 10 Mar 2025 09:24:26 -0400 Subject: [PATCH] Rebuild MV3 extension if mv3-data content changes --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d568b9dc0..c9d92a35c 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ run_options := $(filter-out $@,$(MAKECMDGOALS)) sources := $(wildcard assets/* assets/*/* dist/version src/* src/*/* src/*/*/* src/*/*/*/*) platform := $(wildcard platform/* platform/*/* platform/*/*/* platform/*/*/*/* platform/*/*/*/*/*) assets := dist/build/uAssets +mv3-data := $(wildcard dist/build/mv3-data/*) all: chromium firefox npm @@ -61,20 +62,20 @@ dig: dist/build/uBlock0.dig dig-snfe: dig cd dist/build/uBlock0.dig && npm run snfe $(run_options) -mv3-assets: +dist/build/mv3-data: mkdir -p dist/build/mv3-data -dist/build/uBOLite.chromium: tools/make-mv3.sh $(sources) $(platform) mv3-assets +dist/build/uBOLite.chromium: tools/make-mv3.sh $(sources) $(platform) $(mv3-data) dist/build/mv3-data tools/make-mv3.sh chromium mv3-chromium: dist/build/uBOLite.chromium -dist/build/uBOLite.firefox: tools/make-mv3.sh $(sources) $(platform) mv3-assets +dist/build/uBOLite.firefox: tools/make-mv3.sh $(sources) $(platform) $(mv3-data) dist/build/mv3-data tools/make-mv3.sh firefox mv3-firefox: dist/build/uBOLite.firefox -dist/build/uBOLite.edge: tools/make-mv3.sh tools/make-edge.mjs $(sources) $(platform) mv3-assets +dist/build/uBOLite.edge: tools/make-mv3.sh tools/make-edge.mjs $(sources) $(platform) $(mv3-data) dist/build/mv3-data tools/make-mv3.sh edge mv3-edge: dist/build/uBOLite.edge