~ubuntu-branches/ubuntu/trusty/enigmail/trusty

« back to all changes in this revision

Viewing changes to mailnews/extensions/enigmail/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-mpeaob8bhtk42aun
Tags: 2:1.5.2-0ubuntu1
* 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
XPI_MODULE      = enigmail
 
6
XPI_MODULE_VERS = 1.5.2
 
7
 
 
8
DEPTH           = ../../..
 
9
topsrcdir       = @top_srcdir@
 
10
srcdir          = @srcdir@
 
11
VPATH           = @srcdir@
 
12
 
 
13
include $(DEPTH)/config/autoconf.mk
 
14
 
 
15
MOZILLA_VERSION_PARTS = $(subst ., ,$(MOZILLA_VERSION))
 
16
MOZILLA_MAJOR_VERSION = $(firstword $(MOZILLA_VERSION_PARTS))
 
17
TMP_VAR = $(word 2,$(MOZILLA_VERSION_PARTS))
 
18
MOZILLA_MINOR_VERSION = $(shell echo $(TMP_VAR)|sed 's/[a-z].*//')
 
19
 
 
20
GECKO18 = $(shell test $(MOZILLA_MAJOR_VERSION) -lt 19 && echo 1)
 
21
 
 
22
DIRS = ipc public
 
23
 
 
24
ifeq ($(GECKO18),1)
 
25
  DIRS += src build
 
26
endif
 
27
 
 
28
DIRS += ui package lang
 
29
 
 
30
PLATFORM_STR = unknown
 
31
 
 
32
# Edit the lines below as needed, depending upon your platform(s)
 
33
ifeq ($(OS_ARCH),Linux)
 
34
PLATFORM_STR = linux
 
35
endif
 
36
 
 
37
ifeq ($(OS_ARCH),WIN95)
 
38
PLATFORM_STR = win32
 
39
endif
 
40
 
 
41
ifeq ($(OS_ARCH),WINNT)
 
42
PLATFORM_STR = win32
 
43
endif
 
44
 
 
45
ifeq ($(OS_CONFIG),SunOS5)
 
46
PLATFORM_STR = sunos5
 
47
endif
 
48
 
 
49
ifeq ($(OS_ARCH),Darwin)
 
50
PLATFORM_STR = darwin
 
51
endif
 
52
 
 
53
ifeq ($(OS_ARCH),FreeBSD)
 
54
PLATFORM_STR = freebsd
 
55
endif
 
56
 
 
57
ifeq ($(OS_ARCH),OpenBSD)
 
58
PLATFORM_STR = openbsd
 
59
endif
 
60
 
 
61
ifeq ($(OS_ARCH),OS2)
 
62
PLATFORM_STR = os2
 
63
endif
 
64
 
 
65
ifeq ($(OS_ARCH),OSF1)
 
66
PLATFORM_STR = osf1
 
67
endif
 
68
 
 
69
XPIFILE = $(XPI_MODULE)-$(XPI_MODULE_VERS)-$(PLATFORM_STR)-$(TARGET_CPU).xpi
 
70
 
 
71
ifeq ($(TARGET_XPCOM_ABI),)
 
72
ENIG_XPCOM_ABI = $(OS_ARCH)
 
73
else
 
74
ENIG_XPCOM_ABI = $(OS_ARCH)_$(TARGET_XPCOM_ABI)
 
75
endif
 
76
 
 
77
.PHONY: dirs $(DIRS)
 
78
 
 
79
all: dirs
 
80
 
 
81
dirs: $(DIRS)
 
82
 
 
83
$(DIRS):
 
84
        $(MAKE) -C $@
 
85
 
 
86
xpi:
 
87
        $(srcdir)/genxpi $(XPIFILE) $(XPI_MODULE_VERS) $(OS_ARCH) "$(TARGET_XPCOM_ABI)" $(MOZ_APP_NAME)-$(MOZ_APP_VERSION) $(DIST)/bin $(srcdir) $(XPI_MODULE) $(DLL_SUFFIX) $(LIB_PREFIX)
 
88
 
 
89
clean:
 
90
        test -f $(DIST)/bin/$(XPIFILE) && rm $(DIST)/bin/$(XPIFILE) || echo ""
 
91
        for dir in $(DIRS); do \
 
92
          $(MAKE) -C $$dir clean; \
 
93
        done