Index: /libcaca/trunk/csharp/Makefile.am
===================================================================
--- /libcaca/trunk/csharp/Makefile.am	(revision 2867)
+++ /libcaca/trunk/csharp/Makefile.am	(revision 2868)
@@ -13,4 +13,7 @@
 	$(srcdir)/Font.cs
 
+test_sources = \
+	$(srcdir)/test.cs
+
 if USE_CSHARP
 caca_DATA = caca-sharp.dll caca-sharp.dll.config
@@ -18,6 +21,5 @@
 endif
 
-EXTRA_DIST = $(caca_sources) caca-sharp.dll.config.in \
-             $(srcdir)/test.cs
+EXTRA_DIST = $(caca_sources) $(test_sources) caca-sharp.dll.config.in
 
 caca-sharp.dll: $(caca_sources)
@@ -25,6 +27,6 @@
 	  -r:System.Drawing.dll
 
-test.exe: $(srcdir)/test.cs caca-sharp.dll
-	gmcs $(srcdir)/test.cs -out:$@ -lib:./ \
+test.exe: $(test_sources) caca-sharp.dll
+	gmcs $(test_sources) -out:$@ -lib:./ \
 	  -r:System.Drawing.dll -r:./caca-sharp.dll
 
