|
1
by Alexander Sack
initial checkin of ffox extension template |
1 |
#!/usr/bin/make -f
|
2 |
||
3 |
# name the package (as in debian/control) that will ship the extension
|
|
4 |
MOZ_EXTENSION_PKG := example-extension |
|
5 |
||
6 |
# xpi.mk will auto detect the .xpi in your package. if you want to do it
|
|
7 |
# explicit, use this variable
|
|
8 |
#MOZ_XPI_FILE := yourextension.xpi
|
|
9 |
||
10 |
# xpi.mk tries to auto detect the extension manager id (em:id) from the .xpis
|
|
11 |
# install.rdf file. There might be cases where this doesn't work. use the following
|
|
12 |
# variable to explicitly define an extension ID and disable auto detection
|
|
|
7
by Alexander Sack
Polish the template to better match best-practices: |
13 |
#MOZ_XPI_EMID := {xxxxxxx-xxxx-xxxx}
|
|
1
by Alexander Sack
initial checkin of ffox extension template |
14 |
|
|
4
by Alexander Sack
* drop cdbs hooks from rules file (those should be in mozilla-devscripts now) |
15 |
# xpi.mk will run a build command before packaging an .xpi file. you can use this
|
16 |
# to produce an .xpi. if you define this, the clean rule will remove any .xpi file
|
|
17 |
# found in the top level directory
|
|
18 |
#MOZ_XPI_BUILD_COMMAND = sh build.sh
|
|
19 |
||
|
10
by Sasa Bodiroza
Add support for Thunderbird in debian/{control,rules} |
20 |
# xpi.mk will assume your extension is compatible with Firefox 2 and Firefox 3,
|
21 |
# and will install it in the default dirs, defined in xpi.mk script. In case, your
|
|
22 |
# extension is compatible with Fx2, Fx3 or Thunderbird adjust this variable (see the example)
|
|
23 |
# firefox - set if compatible with Firefox 2
|
|
24 |
# firefox-addons - set if compatible with Firefox 3
|
|
25 |
# thunderbird - set if compatible with Thunderbird
|
|
26 |
# Don't forget to adjust Depends field in debian/control!
|
|
27 |
#MOZ_XPI_MOZILLA_DIRS := firefox-addons firefox thunderbird
|
|
28 |
||
|
1
by Alexander Sack
initial checkin of ffox extension template |
29 |
include /usr/share/cdbs/1/rules/debhelper.mk |
30 |
include /usr/share/mozilla-devscripts/xpi.mk |
|
31 |