--- annozilla/src/makefile 2005/01/04 17:24:06 1.7 +++ annozilla/src/makefile 2006/11/10 14:51:55 1.15 @@ -1,10 +1,50 @@ -SOURCE = content/annozilla/* locale/en-US/annozilla/* +COMPRESS = perl zip.pl +XPI = ../downloads/annozilla-latest.xpi -xpi: install.js install.rdf chrome/annozilla.jar - perl zip.pl ../downloads/annozilla-latest.xpi install.js install.rdf chrome/annozilla.jar +HELPFILES = locale/en-US/annozilla/help/creating.xhtml \ + locale/en-US/annozilla/help/editing.xhtml \ + locale/en-US/annozilla/help/firefox-editor.png \ + locale/en-US/annozilla/help/general.xhtml \ + locale/en-US/annozilla/help/help.css \ + locale/en-US/annozilla/help/index.xhtml \ + locale/en-US/annozilla/help/languages.xhtml \ + locale/en-US/annozilla/help/loading.xhtml \ + locale/en-US/annozilla/help/preferences.xhtml \ + locale/en-US/annozilla/help/product-firefox.png \ + locale/en-US/annozilla/help/product-mozilla.png \ + locale/en-US/annozilla/help/servers.xhtml \ + locale/en-US/annozilla/help/viewing.xhtml -install: chrome/annozilla.jar - cp chrome/annozilla.jar $(MOZILLA)/bin/chrome/annozilla.jar +SOURCE = content/annozilla/* \ + content/annozilla/about/* \ + content/annozilla/editor/* \ + content/annozilla/icons/* \ + content/annozilla/prefs/* \ + content/annozilla/prefs/firefox/* \ + locale/en-US/annozilla/* \ + locale/fr-FR/annozilla/* \ + locale/ja-JP/annozilla/* + +xpi: versioncheck install.js install.rdf chrome/annozilla.jar + $(COMPRESS) $(XPI) install.js install.rdf chrome/annozilla.jar + +chrome/annozilla.jar: chrome $(SOURCE) + $(COMPRESS) chrome/annozilla.jar \ + `find content/annozilla -name CVS -prune -o -name '*.bak' -o -name Thumbs.db -prune -o -name '.#*' -prune -o -type f -print` \ + `find locale -name CVS -prune -o -name '*.bak' -prune -o -name Thumbs.db -prune -o -type f -print` + +chrome: + mkdir chrome + +locale/en-US/annozilla/help/%: ../www/manual/en-US/% + cp $< $@ + +versioncheck: + INSTALL_JS=`perl -n -e 'print $$1 if /(.*)<\/em:version>/' install.rdf` ;\ + INSTALL_RDF=`perl -n -e 'print $$1 if /const myProductRegVersion = "(.*)";/' install.js` ;\ + ABOUT_XUL=`perl -n -e 'print $$1 if /