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
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
topsrcdir = @top_srcdir@
12
include $(DEPTH)/config/autoconf.mk
13
include $(topsrcdir)/config/rules.mk
15
##################################################
16
## Gather a list of tests, generate timestamp deps
17
##################################################
19
ifneq (,$(findstring check,$(MAKECMDGOALS)))
20
allsrc = $(wildcard $(srcdir)/*)
21
tests2run = $(notdir $(filter %.tpl,$(allsrc)))
22
tests2run += $(notdir $(filter %.tpm,$(allsrc)))
23
check_targets += $(addprefix $(TS)/,$(tests2run))
26
all_nop: # export, libs and tools are not needed
28
check:: $(TS) $(check_targets)
30
#############################################
31
# Only invoke tests when sources have changed
32
#############################################
34
$(PERL) $(srcdir)/runtest $<
37
parent = $(patsubst %/,%,$(dir $(srcdir)))
38
$(TS)/make-makefile.tpl: \
39
$(srcdir)/make-makefile.tpl\
40
$(parent)/makemakefile.pm\
42
$(PERL) $(srcdir)/runtest $<
45
$(TS)/makemakefile.tpm: \
46
$(srcdir)/makemakefile.tpm \
47
$(parent)/makemakefile.pm \
49
$(PERL) $(srcdir)/runtest $<
52
#####################################################
53
## Extra dep needed to synchronize parallel execution
54
#####################################################