File:  [mozdev] / dict / Makefile
Revision 1.79: download - view: text, annotated - select for diffs - revision graph
Tue Dec 31 01:15:06 2013 UTC (3 years, 10 months ago) by dcostanz
Branches: MAIN
CVS tags: HEAD
Release version 0.7.4, which fixes a memory leak that caused 0.7.3 to be rejected by addons.mozilla.org.
The fix was to separate the JavaScript code into modules, which don't close over any window variables, and
only populate DictExtension from the XUL-front-ends, which are <script> included from XUL and populate
a different namespace (DictExtensionXul).

.PHONY = all release clean

PROJECTNAME = dict

CURRENTVERSION = 0.7.4

XPITARGET = $(PROJECTNAME).xpi

XPIFILES = \
	content/close-matches.js             \
	content/close-matches.xul            \
	content/context.js                   \
	content/context.xul                  \
	content/dictclient.js                \
	content/pref.js                      \
	content/pref-panel-extension.xul     \
	content/xul-front-end.js             \
	locale/en-US/dict.dtd                \
	locale/en-US/dict.properties         \
	install.rdf                          \
	components/dict-service-main.js      \
	defaults/preferences/defaultprefs.js \
	chrome.manifest                      \

all : $(XPITARGET)

clean :
	$(RM) $(XPITARGET)
	$(RM) install.rdf
	$(RM) locale/en-US/dict.dtd

# preprocess some of the files to add consistent version information
M4DEFINE += DICTCONFIG_VERSION=$(CURRENTVERSION)

% : %.m4 Makefile
	m4 $(addprefix --define=,$(M4DEFINE)) $< > $@

# build the XPI
$(XPITARGET) : $(XPIFILES)
	zip -9 -X $(XPITARGET) $(XPIFILES)
	@echo $(XPITARGET) is now ready for install

# release the XPI
release : downloads/$(PROJECTNAME)-$(CURRENTVERSION).xpi

downloads/$(PROJECTNAME)-$(CURRENTVERSION).xpi : $(XPITARGET)
	cp $< $@

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>