-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
39 lines (29 loc) · 850 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- Mode: Makefile -*-
#
# Makefile for Android PDF.js
#
FILES = manifest.json \
background.js \
handlers/bing.js \
handlers/google.js \
handlers/here.js \
$(wildcard _locales/*/messages.json)
ADDON = osm-everywhere
VERSION = $(shell sed -n 's/^ "version": "\([^"]\+\).*/\1/p' manifest.json)
ANDROIDDEVICE = $(shell adb devices | cut -s -d$$'\t' -f1 | head -n1)
trunk: $(ADDON)-trunk.xpi
release: $(ADDON)-$(VERSION).xpi
%.xpi: $(FILES)
@zip -r9 - $^ > $@
clean:
rm -f $(ADDON)-*.xpi
# Starts local debug session
run:
web-ext run --bc
# Starts debug session on connected Android device
arun:
@if [ -z "$(ANDROIDDEVICE)" ]; then \
echo "No android devices found!"; \
else \
web-ext run --target=firefox-android --firefox-apk=org.mozilla.fenix --android-device="$(ANDROIDDEVICE)"; \
fi