-AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
-
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = types formats converter tests
+SUBDIRS = \
+ include \
+ src \
+ doc \
+ tests
+
+# Directories added to EXTRA_DIST will be recursively copied to the distribution.
+EXTRA_DIST = \
+ extras
+
+dist_doc_DATA = ChangeLog LICENSE mit-license.txt gpl-2.0.txt \
+ std-ext-lib.txt README CONTRIBUTING.adoc
+
+dist_noinst_DATA = CodingStyle
+
+# This is a convenience target, it's not part of the build process.
+CONTRIBUTING.html: CONTRIBUTING.adoc
+ $(ASCIIDOC) --verbose -a source-highlighter=pygments $<
+
+CLEANFILES = CONTRIBUTING.html