THRIFT-4717: fix up make clean with autoconf
diff --git a/lib/csharp/Makefile.am b/lib/csharp/Makefile.am
index 56a8b0f..cc2bbc9 100644
--- a/lib/csharp/Makefile.am
+++ b/lib/csharp/Makefile.am
@@ -92,9 +92,12 @@
Thrift.45.dll: $(THRIFTCODE)
$(CSC) $(CSC_DEFINES) -out:$@ -target:library -reference:System.Web $(THRIFTCODE)
-clean-local:
- $(RM) Thrift.dll \
- $(RM) Thrift.45.dll
+CLEANFILES = \
+ Thrift.dll \
+ Thrift.45.dll
+
+DISTCLEANFILES = \
+ Makefile.in
EXTRA_DIST = \
$(THRIFTCODE) \
@@ -109,7 +112,3 @@
test \
coding_standards.md \
README.md
-
-MAINTAINERCLEANFILES = \
- Makefile \
- Makefile.in