File:  [mozdev] / annozilla / src / makefile
Revision 1.20: download - view: text, annotated - select for diffs - revision graph
Tue Oct 14 17:20:59 2008 UTC (11 years, 1 month ago) by matthew
Branches: MAIN
CVS tags: HEAD
Remove versioncheck (no longer required). Don't build 'about' code (no longer required). Add annozillaStartup.js

COMPRESS = perl zip.pl
XPI = ../downloads/annozilla-latest.xpi

SOURCE = content/annozilla/* \
         content/annozilla/editor/* \
         content/annozilla/icons/* \
         content/annozilla/prefs/* \
         content/annozilla/prefs/firefox/* \
         content/annozilla/prefs/firefox/1.5/* \
         content/annozilla/resources/* \
         skin/annozilla/* \
         skin/annozilla/icons/* \
         locale/en-US/annozilla/* \
         locale/fr-FR/annozilla/* \
         locale/ja-JP/annozilla/*

xpi: install.rdf chrome.manifest chrome/annozilla.jar components/annozillaStartup.js
	$(COMPRESS) $(XPI) install.rdf chrome.manifest chrome/annozilla.jar components/annozillaStartup.js

chrome/annozilla.jar: chrome $(SOURCE)
	$(COMPRESS) chrome/annozilla.jar \
	    `find content/annozilla skin -name CVS -prune -o -name '*.bak' -o -name Thumbs.db -prune -o -name '.#*' -prune -o -name '*.swp' -prune -o -type f -print` \
	    `find locale -name CVS -prune -o -name '*.bak' -prune -o -name Thumbs.db -prune -o -type f -print`

build: xpi
	BUILD=`perl -n -e 'print $$1 if /<em:version>(.*)<\/em:version>/' install.rdf` ;\
	mv $(XPI) ../downloads/annozilla-$$BUILD.xpi

chrome:
	mkdir chrome

locale/en-US/annozilla/help/%: ../www/manual/en-US/%
	cp $< $@

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