Fix mv3 build commands

This commit is contained in:
Raymond Hill 2025-03-08 13:39:53 -05:00
parent 94db43c4ad
commit 26d1283583
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -8,7 +8,6 @@ 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-assets := dist/build/mv3-data/*
all: chromium firefox npm
@ -62,17 +61,20 @@ dig: dist/build/uBlock0.dig
dig-snfe: dig
cd dist/build/uBlock0.dig && npm run snfe $(run_options)
dist/build/uBOLite.chromium: tools/make-mv3.sh $(sources) $(platform) $(mv3-assets)
mv3-assets:
mkdir dist/build/mv3-data
dist/build/uBOLite.chromium: tools/make-mv3.sh $(sources) $(platform) mv3-assets
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-assets
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-assets
tools/make-mv3.sh edge
mv3-edge: dist/build/uBOLite.edge