-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
36 lines (28 loc) · 1.02 KB
/
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
CHROMEFILES=$(shell find chrome)
COMPONENTSFILES=$(shell find components)
JSFILES=$(shell find calendar-js)
VERSION=$(shell grep "<em:version>" install.rdf | sed "s/[^0-9.-]*//g")
OUTPUT=Year-View-v${VERSION}.xpi
TUNDERBIRD=$(shell ./devtools.py --exec)
PROFILEPATH=$(shell ./devtools.py --profile)
CACHEPATH=$(shell ./devtools.py --cache)
.PHONY: clean run help all
all: ${OUTPUT}
${OUTPUT}: install.rdf chrome.manifest ${CHROMEFILES} ${COMPONENTSFILES} ${JSFILES}
zip -r ${OUTPUT} install.rdf chrome.manifest chrome components calendar-js -x *.DS_*
clean:
rm -f ${OUTPUT}
# this ONLY ON OSX, only with THIS PROFILE
run:
rm ${CACHEPATH}/startupCache/*
${TUNDERBIRD} --jsconsole
dev-install:
echo $(PWD) > "${PROFILEPATH}/extensions/[email protected]"
help:
@echo "targets:"
@echo
@echo "\tall\t\tcreate or update ${OUTPUT} (default)"
@echo "\tclean\t\tdelete build"
@echo "\trun\t\trun thunderbird with clean startup cache and the js console"
@echo "\tdev-install\tinstall Year-View in thunderbird in development mode"
@echo