~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/build/package/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This Source Code Form is subject to the terms of the Mozilla Public
 
2
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
4
 
 
5
DEPTH           = @DEPTH@
 
6
topsrcdir       = @top_srcdir@
 
7
srcdir          = @srcdir@
 
8
VPATH           = @srcdir@
 
9
 
 
10
include $(DEPTH)/config/autoconf.mk
 
11
 
 
12
# This makefile doesn't do anything by default. Use one of the special targets
 
13
# below to stage and build packages.
 
14
 
 
15
include $(topsrcdir)/config/rules.mk
 
16
 
 
17
ifdef MOZ_DEBUG
 
18
APP_NAME = MozillaDebug
 
19
else
 
20
APP_NAME = Mozilla
 
21
endif
 
22
 
 
23
# override these variables in special situations
 
24
STAGE_DIR        = $(DEPTH)/stage$(if $*,/$*)
 
25
STAGE_MACAPP_DIR = $(DEPTH)/stage$(if $*,/$*)/$(APP_NAME).app
 
26
XPI_FILE         = $(DIST)/xpi/$*.xpi
 
27
ZIP_FILE         = $(DIST)/$*.zip
 
28
TGZ_FILE         = $(DIST)/$*.tar.gz
 
29
BZ2_FILE         = $(DIST)/$*.tar.bz2
 
30
DMG_FILE         = $(DIST)/$*.dmg
 
31
 
 
32
PACKAGE_LIST = $(srcdir)/packages.list
 
33
PACKAGE_FLAGS = 
 
34
HANDLERS = xptmerge touch optional preprocess exec
 
35
MAPPINGS = dist/bin=bin xpiroot/=
 
36
 
 
37
MACAPP_MAPPINGS = dist/bin=Contents/MacOS approot=Contents
 
38
 
 
39
dump-packages:
 
40
        @$(PERL) $(srcdir)/dump-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -u $(PACKAGE_FLAGS)
 
41
 
 
42
# This rule will stage any one package. If you need to stage multiple packages or
 
43
# do ^packages (subtraction packages) use the stage-packages rule and set PACKAGES
 
44
# on the command line
 
45
stage-%:
 
46
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) -d $(PACKAGE_FLAGS) $*
 
47
 
 
48
stagemacapp-%:
 
49
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_MACAPP_DIR) $(addprefix -m ,$(MACAPP_MAPPINGS)) $(addprefix -c ,$(HANDLERS)) -d $(PACKAGE_FLAGS) $*
 
50
 
 
51
makexpi-%:
 
52
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package xpi=$(XPI_FILE) -d $(PACKAGE_FLAGS) $*
 
53
 
 
54
makezip-%:
 
55
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package zip=$(ZIP_FILE) -d $(PACKAGE_FLAGS) $*
 
56
 
 
57
maketgz-%:
 
58
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package tgz=$(TGZ_FILE) -d $(PACKAGE_FLAGS) $*
 
59
 
 
60
makebz2-%:
 
61
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package bz2=$(BZ2_FILE) -d $(PACKAGE_FLAGS) $*
 
62
 
 
63
makedmg-%:
 
64
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MACAPP_MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package dmg=$(DMG_FILE) -d $(PACKAGE_FLAGS) $*
 
65
 
 
66
ifndef PACKAGES
 
67
stage-packages makexpi-packages:
 
68
        @echo "Please set PACKAGES on the makefile command line or environment."
 
69
 
 
70
else #PACKAGES
 
71
stage-packages:
 
72
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(apprefix -c ,$(HANDLERS)) $(PACKAGE_FLAGS) $(PACKAGES)
 
73
 
 
74
makexpi-packages:
 
75
        $(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(apprefix -c ,$(HANDLERS)) --make-package xpi=$(XPI_FILE) -d $(PACKAGE_FLAGS) $(PACKAGES)
 
76
 
 
77
endif