diff -r 000000000000 -r 6474c204b198 build/unix/test/Makefile.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/unix/test/Makefile.in Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,38 @@ +# -*- makefile -*- +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +include $(topsrcdir)/config/rules.mk + +################################################## +## Gather a list of tests, generate timestamp deps +################################################## +TS=.ts +ifneq (,$(findstring check,$(MAKECMDGOALS))) + allsrc = $(wildcard $(srcdir)/*) + tests2run = $(notdir $(filter %.tpl,$(allsrc))) + check_targets += $(addprefix $(TS)/,$(tests2run)) +endif + +check:: $(TS) $(check_targets) + +############################################# +# Only invoke tests when sources have changed +############################################# +$(TS)/%: $(srcdir)/% + $(PERL) $(srcdir)/runtest $< + @touch $@ + +##################################################### +## Extra dep needed to synchronize parallel execution +##################################################### +$(TS): $(TS)/.done +$(TS)/.done: + $(MKDIR) -p $(dir $@) + touch $@ + +GARBAGE_DIRS += $(TS) + +# EOF