-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (19 loc) · 837 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
VERSION=$(shell grep em:version install.rdf|sed -e 's/<[^>]*>//g'|sed -e 's/ //g')
XPIFILE=web/searchery-$(VERSION).xpi
XPIDL=/usr/lib/xulrunner-1.9b5/xpidl -I/usr/share/idl/xulrunner-1.9b5/stable/
FIREFOX=firefox
CHROMEFILES=$(shell find chrome/)
all: $(XPIFILE)
run: all
$(FIREFOX) -no-remote -P searchery -jsconsole
$(XPIFILE): $(CHROMEFILES) chrome.manifest install.rdf .gitignore xpi-ignore
rm -rf .xpistage $(XPIFILE)
mkdir -p .xpistage
rsync -a --exclude-from .gitignore --exclude-from xpi-ignore . .xpistage
cd .xpistage && zip -r ../$(XPIFILE) *
rm -rf .xpistage
HTML=web/index.html web/welcome.html
tidy:
tidy -indent -quiet -utf8 -modify --tidy-mark false $(HTML)
push: $(XPIFILE) $(shell find web/)
rsync --exclude-from .gitignore --delete --delete-excluded -avz web/ yakk@ianloic.com:searchery.ianloic.com/