17 lines
390 B
Makefile
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
|