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

« back to all changes in this revision

Viewing changes to mozilla/config/makefiles/test/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
# -*- makefile -*-
 
2
#
 
3
# This Source Code Form is subject to the terms of the Mozilla Public
 
4
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
 
5
# You can obtain one at http://mozilla.org/MPL/2.0/.
 
6
 
 
7
DEPTH     = @DEPTH@
 
8
topsrcdir = @top_srcdir@
 
9
srcdir    = @srcdir@
 
10
VPATH     = @srcdir@
 
11
 
 
12
include $(DEPTH)/config/autoconf.mk
 
13
 
 
14
USE_AUTOTARGETS_MK  = 1
 
15
MAKEUTILS_UNIT_TEST = 1
 
16
include $(topsrcdir)/config/makefiles/makeutils.mk
 
17
 
 
18
dir-ts = .deps/test
 
19
check-arglist        = $(dir-ts)/arglist.ts
 
20
check-autotargets    = $(dir-ts)/autotargets_mk.ts
 
21
check-export-targets = $(dir-ts)/export-targets-mk.ts
 
22
check-XinY           = $(dir-ts)/check_XinY_mk.ts
 
23
check-xpidl          = $(dir-ts)/xpidl-mk.ts
 
24
check-tests =\
 
25
  $(check-arglist) \
 
26
  $(check-autotargets) \
 
27
  $(check-export-targets) \
 
28
  $(check-XinY) \
 
29
  $(check-xpidl) \
 
30
  $(NULL)
 
31
 
 
32
 
 
33
##------------------_##
 
34
##---]  TARGETS  [---##
 
35
##------------------_##
 
36
all::
 
37
 
 
38
clean:
 
39
        $(RM) $(check-tests)
 
40
        @$(MAKE) --no-print-directory -f $(srcdir)/check-xpidl.mk clean-xpidl topsrcdir=$(topsrcdir)
 
41
 
 
42
###########################################################################
 
43
## Logic processed at compile time so be selective about when to test
 
44
## $(MAKE) check VERBOSE=1
 
45
ifneq ($(NULL),$(findstring check,$(MAKECMDGOALS))) #
 
46
 
 
47
check-preqs =\
 
48
  $(call mkdir_deps,$(dir-ts)) \
 
49
  $(check-tests) \
 
50
  $(NULL)
 
51
 
 
52
check:: $(check-preqs)
 
53
        @true
 
54
 
 
55
 
 
56
ifdef VERBOSE #{ gmake check VERBOSE=1
 
57
  $(info ===========================================================================)
 
58
  $(info Running test: $(MAKECMDGOALS): pwd=$(CURDIR))
 
59
  $(info ===========================================================================)
 
60
endif #}
 
61
 
 
62
ifndef requiredfunction
 
63
  $(error requiredfunction is not defined)
 
64
endif
 
65
 
 
66
 
 
67
##################
 
68
check-XinY-preqs=\
 
69
  $(call mkdir_deps,$(dir-ts)) \
 
70
  $(topsrcdir)/config/makefiles/makeutils.mk \
 
71
  $(srcdir)/check_XinY.mk \
 
72
  $(eval include $(srcdir)/check_XinY.mk) \
 
73
  $(NULL)
 
74
 
 
75
$(check-XinY): $(check-XinY-preqs)
 
76
        @$(TOUCH) $@
 
77
# </check-XinY.mk>
 
78
 
 
79
 
 
80
###########################################################################
 
81
## check-arglist.mk always invoked as a compile time test
 
82
## maintain real file dependencies for use later on.
 
83
check-arglist-preqs=\
 
84
  $(call mkdir_deps,$(dir-ts)) \
 
85
  $(topsrcdir)/config/makefiles/makeutils.mk \
 
86
  $(srcdir)/check-arglist.mk \
 
87
  $(eval include $(srcdir)/check-arglist.mk) \
 
88
  $(NULL)
 
89
 
 
90
$(check-arglist): $(check-arglist-preqs)
 
91
        @$(TOUCH) $@
 
92
# </check-arglist.mk>
 
93
 
 
94
 
 
95
###########################################################################
 
96
# <CHECK: autotargets.mk>
 
97
check-autotargets-preqs=\
 
98
  $(call mkdir_deps,$(dir-ts)) \
 
99
  $(topsrcdir)/config/makefiles/makeutils.mk \
 
100
  $(topsrcdir)/config/makefiles/autotargets.mk \
 
101
  $(srcdir)/check-autotargets.mk \
 
102
  $(eval include $(srcdir)/check-autotargets.mk) \
 
103
  $(NULL)
 
104
 
 
105
$(check-autotargets): $(check-autotargets-preqs)
 
106
        @$(TOUCH) $@
 
107
# </CHECK: autotargets.mk>
 
108
 
 
109
 
 
110
###########################################################################
 
111
# <CHECK: export-targets.mk>
 
112
check-export-targets-preqs=\
 
113
  $(call mkdir_deps,$(dir-ts)) \
 
114
  $(topsrcdir)/config/makefiles/makeutils.mk \
 
115
  $(topsrcdir)/config/makefiles/target_export.mk \
 
116
  $(srcdir)/check-export-targets.mk \
 
117
  checkup \
 
118
  $(NULL)
 
119
 
 
120
# include then test
 
121
checkup: $(eval include $(srcdir)/check-export-targets.mk)
 
122
 
 
123
$(check-export-targets): $(check-export-targets-preqs)
 
124
        @$(TOUCH) $@
 
125
# </CHECK: export-targets.mk>
 
126
 
 
127
###########################################################################
 
128
##{ <CHECK: xpidl.mk>
 
129
check-xpidl-preqs=\
 
130
  $(call mkdir_deps,$(dir-ts)) \
 
131
  $(topsrcdir)/config/config.mk \
 
132
  $(topsrcdir)/config/makefiles/makeutils.mk \
 
133
  $(topsrcdir)/config/makefiles/xpidl.mk \
 
134
  $(srcdir)/check-xpidl.mk \
 
135
  $(NULL)
 
136
 
 
137
check-xpidl-args =\
 
138
  "topsrcdir=$(topsrcdir)" \
 
139
  "srcdir=$(srcdir)" \
 
140
  $(NULL)
 
141
$(check-xpidl): $(check-xpidl-preqs)
 
142
        $(MAKE) -f $(srcdir)/check-xpidl.mk check-xpidl $(check-xpidl-args)
 
143
        @$(TOUCH) $@
 
144
#} </check-xpidl.mk>
 
145
 
 
146
endif #} findstring MAKECMDGOAL