nikita.ym/Makefile
2026-07-21 14:17:32 +03:00

17 lines
390 B
Makefile

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