diff --git a/grid/test/Makefile.am b/grid/test/Makefile.am
index bd3983429bbb6ba2d00a273a84bf446a58b07234..7475f2586e300ee952f3d8b97b382fd3dbbe64dc 100644
--- a/grid/test/Makefile.am
+++ b/grid/test/Makefile.am
@@ -1,17 +1,12 @@
 # $Id$
 
-# need two lists because yaspgrid needs small shell-wrapper to start with MPI
-PROGLIST = test-sgrid
-RUNLIST = test-sgrid
-
 if MPI
-  PROGLIST += test-yaspgrid
-  RUNLIST += run-yaspgrid
+  YPROG = test-yaspgrid
+  YRUN = run-yaspgrid
 endif
 
 if ALBERT
-  PROGLIST += test-albert
-  RUNLIST += test-albert
+  APROG = test-albert
 endif
 
 # UGGrid needs AmiraMeshReader for now...
@@ -23,15 +18,17 @@ else
 endif
 
 if UG
-  PROGLIST += $(DO_UGTEST)
-  RUNLIST += $(DO_UGTEST)
+  UPROG = $(DO_UGTEST)
 endif
 
-# which tests to run
-TESTS = $(RUNLIST)
+# tests where program to build and program to run are equal
+NORMALTESTS = test-sgrid $(APROG) $(UPROG)
+
+# list of tests to run (yaspgrid is special case)
+TESTS = $(NORMALTESTS) $(YRUN)
 
 # programs just to build when "make check" is used
-check_PROGRAMS = $(PROGLIST)
+check_PROGRAMS = $(NORMALTESTS) $(YPROG)
 
 # define the programs