~ubuntu-branches/ubuntu/precise/enigmail/precise-security

« back to all changes in this revision

Viewing changes to build/autoconf/test/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-12 16:36:01 UTC
  • mfrom: (0.12.15)
  • Revision ID: package-import@ubuntu.com-20121112163601-t8e8skdfi3ni9iqp
Tags: 2:1.4.6-0ubuntu0.12.04.1
* New upstream release v1.4.6
  - see LP: #1080212 for USN information
* Drop unneeded patches
  - remove debian/patches/correct-version-number.diff
  - remove debian/patches/dont_register_cids_multiple_times.diff
  - update debian/patches/series
* Support building in an objdir
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- makefile -*-
2
 
#
3
 
# ***** BEGIN LICENSE BLOCK *****
4
 
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
5
 
#
6
 
# The contents of this file are subject to the Mozilla Public License Version
7
 
# 1.1 (the "License"); you may not use this file except in compliance with
8
 
# the License. You may obtain a copy of the License at
9
 
# http://www.mozilla.org/MPL/
10
 
#
11
 
# Software distributed under the License is distributed on an "AS IS" basis,
12
 
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13
 
# for the specific language governing rights and limitations under the
14
 
# License.
15
 
#
16
 
# The Original Code is mozilla.org code.
17
 
#
18
 
# The Initial Developer of the Original Code is Mozilla Foundation.
19
 
# Portions created by the Initial Developer are Copyright (C) 2011
20
 
# the Initial Developer. All Rights Reserved.
21
 
#
22
 
# Contributor(s):
23
 
#   Joey Armstrong <joey@mozilla.com>
24
 
#
25
 
# Alternatively, the contents of this file may be used under the terms of
26
 
# either of the GNU General Public License Version 2 or later (the "GPL"),
27
 
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28
 
# in which case the provisions of the GPL or the LGPL are applicable instead
29
 
# of those above. If you wish to allow use of your version of this file only
30
 
# under the terms of either the GPL or the LGPL, and not to allow others to
31
 
# use your version of this file under the terms of the MPL, indicate your
32
 
# decision by deleting the provisions above and replace them with the notice
33
 
# and other provisions required by the GPL or the LGPL. If you do not delete
34
 
# the provisions above, a recipient may use your version of this file under
35
 
# the terms of any one of the MPL, the GPL or the LGPL.
36
 
#
37
 
# ***** END LICENSE BLOCK *****
38
 
 
39
 
DEPTH           = ../../..
40
 
topsrcdir       = @top_srcdir@
41
 
srcdir          = @srcdir@
42
 
VPATH           = @srcdir@
43
 
 
44
 
include $(DEPTH)/config/autoconf.mk
45
 
include $(topsrcdir)/config/rules.mk
46
 
 
47
 
##################################################
48
 
## Gather a list of tests, generate timestamp deps
49
 
##################################################
50
 
TS=.ts
51
 
ifneq (,$(findstring check,$(MAKECMDGOALS)))
52
 
          allsrc = $(wildcard $(srcdir)/*)
53
 
       tests2run = $(notdir $(filter %.tpl,$(allsrc)))
54
 
       tests2run += $(notdir $(filter %.tpm,$(allsrc)))
55
 
  check_targets += $(addprefix $(TS)/,$(tests2run))
56
 
endif
57
 
 
58
 
all_nop: # export, libs and tools are not needed
59
 
 
60
 
check:: $(TS) $(check_targets)
61
 
 
62
 
#############################################
63
 
# Only invoke tests when sources have changed
64
 
#############################################
65
 
$(TS)/%: $(srcdir)/%
66
 
        $(PERL) $(srcdir)/runtest $<
67
 
        @touch $@
68
 
 
69
 
parent = $(patsubst %/,%,$(dir $(srcdir)))
70
 
$(TS)/make-makefile.tpl: \
71
 
  $(srcdir)/make-makefile.tpl\
72
 
  $(parent)/makemakefile.pm\
73
 
  $(NULL)
74
 
        $(PERL) $(srcdir)/runtest $<
75
 
        @touch $@
76
 
 
77
 
$(TS)/makemakefile.tpm: \
78
 
  $(srcdir)/makemakefile.tpm \
79
 
  $(parent)/makemakefile.pm \
80
 
  $(NULL)
81
 
        $(PERL) $(srcdir)/runtest $<
82
 
        @touch $@
83
 
 
84
 
#####################################################
85
 
## Extra dep needed to synchronize parallel execution
86
 
#####################################################
87
 
$(TS): $(TS)/.done
88
 
$(TS)/.done:
89
 
        $(MKDIR) -p $(dir $@)
90
 
        touch $@
91
 
 
92
 
GARBAGE_DIRS += $(TS)
93
 
 
94
 
# EOF