Index: trunk/psModules/test/astrom/Makefile.am
===================================================================
--- trunk/psModules/test/astrom/Makefile.am	(revision 10824)
+++ trunk/psModules/test/astrom/Makefile.am	(revision 13644)
@@ -11,5 +11,5 @@
 	$(PSMODULES_LIBS)
 
-check_PROGRAMS = \
+TEST_PROGS = \
 	tap_pmAstrometryWCS \
 	tap_pmAstrometryWCS_DVO \
@@ -18,7 +18,13 @@
 	tap_pmAstrometryWCS_DVO4
 
+if BUILD_TESTS
+bin_PROGRAMS = $(TEST_PROGS)
+TESTS = $(TEST_PROGS)
+else
+check_PROGRAMS = $(TEST_PROGS)
+endif
+
+CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
+
 test: check
-
-tests: $(check_PROGRAMS)
 	$(top_srcdir)/test/test.pl
-
