From efdbe1e216fbb3f7f6ab2a038c19f2d0cce5c435 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 26 May 2013 17:30:28 +0000 Subject: [PATCH] Allow the mail program to be overwritten by the environment. git-svn-id: https://svn.dealii.org/trunk@29617 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/Makefile.rules | 9 +++++---- tests/all-headers/Makefile | 12 +++++++++++- tests/mesh_converter/Makefile | 12 +++++++++++- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/tests/Makefile.rules b/tests/Makefile.rules index 10824a7bc5..cf75eee208 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -18,10 +18,11 @@ verbose = off # # MAIL=mymailprog # -# on the command line to use a different mail agent or to tunnel through ssh. -# The mail program takes a single argument, which is the mail address for tests -# The contents of the mail will be provided on STDIN -MAIL = mail +# as part of the 'make' arguments or in the environment to use a different +# mail agent or to tunnel through ssh. The mail program takes a single +# argument, which is the mail address for tests The contents of the mail will +# be provided on STDIN +MAIL ?= mail # this lets you overwrite the diff tool for comparisons. # recommended environment setting: diff --git a/tests/all-headers/Makefile b/tests/all-headers/Makefile index c8069250bb..184e57dca0 100644 --- a/tests/all-headers/Makefile +++ b/tests/all-headers/Makefile @@ -9,6 +9,16 @@ include ../Makefile.paths include $D/common/Make.global_options +# The mail program. Override this by something like +# +# MAIL=mymailprog +# +# as part of the 'make' arguments or in the environment to use a different +# mail agent or to tunnel through ssh. The mail program takes a single +# argument, which is the mail address for tests The contents of the mail will +# be provided on STDIN +MAIL ?= mail + ############################################################ # First how to create executables, including all necessary @@ -82,7 +92,7 @@ report: report+mail: all @$(MAKE) report | tee testresults - @cat testresults | mail regression-tests@dealii.org + @cat testresults | $(MAIL) regression-tests@dealii.org @rm testresults diff --git a/tests/mesh_converter/Makefile b/tests/mesh_converter/Makefile index ee35ea8cab..00a65572bd 100644 --- a/tests/mesh_converter/Makefile +++ b/tests/mesh_converter/Makefile @@ -9,6 +9,16 @@ include ../Makefile.paths include $D/common/Make.global_options +# The mail program. Override this by something like +# +# MAIL=mymailprog +# +# as part of the 'make' arguments or in the environment to use a different +# mail agent or to tunnel through ssh. The mail program takes a single +# argument, which is the mail address for tests The contents of the mail will +# be provided on STDIN +MAIL ?= mail + ############################################################ # First how to create executables, including all necessary @@ -76,7 +86,7 @@ report: report+mail: all @$(MAKE) report | tee testresults - @cat testresults | mail bangerth@brazos.tamu.edu + @cat testresults | $(MAIL) bangerth@brazos.tamu.edu @rm testresults -- 2.39.5