Index: trunk/psLib/test/astro/Makefile.am
===================================================================
--- trunk/psLib/test/astro/Makefile.am	(revision 8958)
+++ trunk/psLib/test/astro/Makefile.am	(revision 8960)
@@ -4,12 +4,4 @@
 	$(top_builddir)/test/tap/src/libtap.la \
 	$(PSLIB_LIBS)
-
-check_DATA = \
-	pslib.config \
-	test.psTime.config1 \
-	test.psTime.config2 \
-	test.psTime.config3 \
-	test.psTime.config4 \
-	test.ser7.dat
 
 TEST_PROGS =
@@ -22,22 +14,38 @@
 endif
 
-CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
+EXTRA_DIST = \
+	data/psTime.config.template \
+	data/test.psTime.config1.template \
+	data/test.psTime.config2.template \
+	data/test.psTime.config3.template \
+	data/test.psTime.config4.template \
+	data/test.ser7.dat 
 
-pslib.config: $(top_srcdir)/etc/pslib/pslib.config.template
+tmp_files = \
+	pslib.config \
+	test.psTime.config1 \
+	test.psTime.config2 \
+	test.psTime.config3 \
+	test.psTime.config4 \
+	test.ser7.dat
+
+CLEANFILES = $(tmp_files) core core.* *~ *.bb *.bbg *.da gmon.out
+
+pslib.config: $(top_srcdir)/etc/pslib.config.template
 	$(PERL) -pe 's|DATADIR|$(top_srcdir)/share|' $? > $@
 
-test.psTime.config1: data/test.psTime.config1.template
+test.psTime.config1: $(srcdir)/data/test.psTime.config1.template
 	cp $? $@
 
-test.psTime.config2: data/test.psTime.config2.template
+test.psTime.config2: $(srcdir)/data/test.psTime.config2.template
 	$(PERL) -pe 's|PREFIX|$(top_srcdir)|' $? > $@
 
-test.psTime.config3: data/test.psTime.config3.template
+test.psTime.config3: $(srcdir)/data/test.psTime.config3.template
 	$(PERL) -pe 's|PREFIX|$(top_srcdir)|' $? > $@
 
-test.psTime.config4: data/test.psTime.config4.template
+test.psTime.config4: $(srcdir)/data/test.psTime.config4.template
 	cp $? $@
 
-test.ser7.dat: data/test.ser7.dat
+test.ser7.dat: $(srcdir)/data/test.ser7.dat
 	cp $? $@
 
