Manually remove $(BUILT_SOURCES) since no-dist-built-sources doesnt work
diff --git a/lib/d/Makefile.am b/lib/d/Makefile.am
index 0137217..6f014c8 100644
--- a/lib/d/Makefile.am
+++ b/lib/d/Makefile.am
@@ -192,6 +192,9 @@
precross: all-local
$(MAKE) -C test precross
+distdir:
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
EXTRA_DIST = \
src \
test \
diff --git a/lib/d/test/Makefile.am b/lib/d/test/Makefile.am
index 44364f9..28f3f3e 100644
--- a/lib/d/test/Makefile.am
+++ b/lib/d/test/Makefile.am
@@ -38,6 +38,8 @@
$(thrift_test_gen): $(top_srcdir)/test/v0.16/ThriftTest.thrift
$(THRIFT) --gen d $<
+distdir:
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
# The actual test targets.
# There just must be some way to reassign a variable without warnings in