-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
24 lines (18 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: release
all: EnhancedPriorityDisplay.xpi
clean: ; rm -f EnhancedPriorityDisplay.xpi
version=$(shell grep -o '"version"\s*:\s*"\S*"' manifest.json | sed -e 's/.*"\([0-9].*\)".*/\1/')
EnhancedPriorityDisplay.xpi: dev/include-manifest $(shell find $(shell cat dev/include-manifest) -type f 2>/dev/null)
rm -f "$@" "$@".tmp
zip -q -r "$@".tmp . -i@dev/include-manifest
mv "$@".tmp "$@"
release/EnhancedPriorityDisplay-${version}-tb.xpi: EnhancedPriorityDisplay.xpi
mkdir -p "`dirname $@`"
cp "EnhancedPriorityDisplay.xpi" "$@"
release: release/EnhancedPriorityDisplay-${version}-tb.xpi
## Requires the Node 'addons-linter' package is installed
## npm install -g addons-linter
## Note: this will produce a lot of "UNSUPPORTED_API" and "MANIFEST_PERMISSIONS"
## warnings because the addons-linter assumes vanilla firefox target.
lint:
addons-linter .