Manually remove $(BUILT_SOURCES) since no-dist-built-sources doesnt work
diff --git a/lib/json/Makefile.am b/lib/json/Makefile.am
index 6c8c0ce..3c7aa8f 100644
--- a/lib/json/Makefile.am
+++ b/lib/json/Makefile.am
@@ -28,6 +28,9 @@
dist-hook:
$(RM) -r $(distdir)/test/build/
+distdir:
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
EXTRA_DIST = \
schema.json \
test
diff --git a/lib/json/test/Makefile.am b/lib/json/test/Makefile.am
index bb87a52..16bcfae 100644
--- a/lib/json/test/Makefile.am
+++ b/lib/json/test/Makefile.am
@@ -20,6 +20,9 @@
check:
$(ANT) $(ANT_FLAGS) test
+distdir:
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
+
# Make sure this doesn't fail if ant is not configured.
clean-local:
ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \