A number of build system improvements: source the DIST file, which contains
[external/ragel.git] / Makefile.am
index ca0cf6e..bbed893 100644 (file)
@@ -1,6 +1,6 @@
 
-SUBDIRS = ragel aapl
-DIST_SUBDIRS = $(SUBDIRS) contrib examples test doc
+SUBDIRS = ragel doc
+DIST_SUBDIRS = $(SUBDIRS) aapl contrib examples test
 
 dist_doc_DATA = CREDITS ChangeLog
 EXTRA_DIST = ragel.vim
@@ -8,5 +8,12 @@ EXTRA_DIST = ragel.vim
 # This file is checked for by the configure script and its existence causes the
 # parsers and the manual to not be built when the distribution is built.
 dist-hook:
-       echo "This is a distribution of Ragel $(VERSION)." > $(distdir)/DIST
+       ( \
+       echo "#!/bin/sh"; \
+       echo ""; \
+       echo "# Change to yes to enable building of parsers or manual. Reconfigure"; \
+       echo "# afterwards."; \
+       echo "build_parsers=no;"; \
+       echo "build_manual=no;"; \
+       ) > $(distdir)/DIST