add Makefile
This commit is contained in:
parent
640ca91459
commit
3178e5cf7e
3 changed files with 39 additions and 1 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
VERSION = $(shell sed -n '/"version"/s/.*\([0-9]\+\.[0-9]\+\).*/\1/p' manifest.json)
|
||||
SET_VERSION = $(eval CURRENT_VERSION=$(VERSION))
|
||||
|
||||
default: v2
|
||||
|
||||
link_v2:
|
||||
ln -s -f manifest_v2.json manifest.json
|
||||
|
||||
link_v3:
|
||||
ln -s -f manifest_v3.json manifest.json
|
||||
|
||||
v2: link_v2
|
||||
$(SET_VERSION)
|
||||
zip -r kf-trombi-$(CURRENT_VERSION).xpi directory.css directory.js icons manifest.json
|
||||
|
||||
v3: link_v3
|
||||
$(SET_VERSION)
|
||||
zip -r kf-trombi-$(CURRENT_VERSION).zip directory.css directory.js icons manifest.json
|
Loading…
Add table
Add a link
Reference in a new issue