This commit is contained in:
@@ -15,15 +15,20 @@ XPI_UNSIGNED_DIR := XPI/unsigned
|
||||
XPI_SIGNED_DIR := XPI/signed
|
||||
XPI_OUTPUT := $(XPI_UNSIGNED_DIR)/$(XPI_FILE)
|
||||
EXTENSION_FILES := manifest.json logo.svg icon-16.png icon-32.png icon-48.png icon-96.png options.css options.html options.js popup.css popup.html popup.js
|
||||
EXTENSION_SOURCES := $(addprefix webextension/,$(EXTENSION_FILES))
|
||||
XPI_VALIDATOR := scripts/release/validate_xpi.py
|
||||
|
||||
.PHONY: all logos xpi check-tools clean-generated
|
||||
|
||||
all: logos
|
||||
all: logos
|
||||
|
||||
|
||||
logos: check-tools $(GENERATED_LOGOS)
|
||||
|
||||
xpi: logos
|
||||
|
||||
xpi: $(XPI_OUTPUT)
|
||||
|
||||
$(XPI_OUTPUT): $(EXTENSION_SOURCES) $(GENERATED_LOGOS) $(XPI_VALIDATOR)
|
||||
@test -n "$(EXTENSION_VERSION)" || { echo "Error: extension version is missing from webextension/manifest.json" >&2; exit 1; }
|
||||
@mkdir -p $(XPI_UNSIGNED_DIR) $(XPI_SIGNED_DIR)
|
||||
@rm -f $(XPI_OUTPUT)
|
||||
|
||||
Reference in New Issue
Block a user