3 XPI_FILES
=chrome.manifest
install.rdf readme.txt \
4 $(wildcard content
/* locale
/*/* skin
/*)
6 ID
=$(shell sed
-n
-e
's/^.*<em:id>\(.*\)<\/em:id>.*/\1/p' -e
'/em:name/q' \
9 uname_S
:= $(shell sh
-c
'uname -s 2>/dev/null || echo not')
10 ifneq (,$(findstring MINGW
,$(uname_S
)))
11 APPDATA
=$(USERPROFILE
)/Application Data
/Thunderbird
/Profiles
12 PROFILE_DIRECTORY
=$(shell sh
-c
'echo "$(APPDATA)"/*.default')
14 ifeq (,$(shell ls
-d
"$(HOME)/.mozilla-thunderbird" 2>/dev
/null
))
15 TBDIR
=$(HOME
)/.thunderbird
17 TBDIR
=$(HOME
)/.mozilla-thunderbird
19 PROFILE_DIRECTORY
=$(wildcard $(TBDIR
)/*.default
)
22 $(TARGET
).xpi
: $(XPI_FILES
)
26 ln
-s
"$(shell pwd)" "$(PROFILE_DIRECTORY)/extensions/$(ID)"
31 rm -rf
"$(PROFILE_DIRECTORY)/extensions/$(ID)"
33 reinstall
: uninstall install