makefile, gitignore
This commit is contained in:
parent
be1c2eb98a
commit
95a6d04e23
3 changed files with 31 additions and 7 deletions
17
Makefile
Normal file
17
Makefile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue