NAME := yandex-music-upgrade VERSION := $(shell python3 -c "import json; print(json.load(open('manifest.json'))['version'])") XPI := $(NAME)-$(VERSION).xpi SOURCES := manifest.json background.js content.js ICONS := $(wildcard *.png) .PHONY: all clean all: $(XPI) $(XPI): $(SOURCES) $(ICONS) zip -r $@ $(SOURCES) $(ICONS) @echo "Готово: $@" clean: rm -f $(NAME)-*.xpi