-ACLOCAL_AMFLAGS = -I config
+ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src \
- tests \
- extras \
- include \
- doc
+DIST_SUBDIRS = include src extras doc tests
+
+SUBDIRS = include src doc tests
+
+if BUILD_EXTRAS
+SUBDIRS += extras
+endif
dist_doc_DATA = LICENSE \
- ChangeLog
+ ChangeLog \
+ README.md
dist_noinst_DATA = CodingStyle