-SUBDIRS = ragel aapl test
+SUBDIRS = ragel doc
+DIST_SUBDIRS = $(SUBDIRS) aapl contrib examples test
-no_parsers = 's/build_parsers=yes/build_parsers=no/'
+dist_doc_DATA = CREDITS ChangeLog
+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:
- cp $(top_distdir)/configure $(top_distdir)/configure.tmp
- cp $(top_distdir)/configure.in $(top_distdir)/configure.in.tmp
- sed $(no_parsers) $(top_distdir)/configure.tmp > $(top_distdir)/configure
- sed $(no_parsers) $(top_distdir)/configure.in.tmp > $(top_distdir)/configure.in
- rm $(top_distdir)/configure.tmp $(top_distdir)/configure.in.tmp
+ ( \
+ 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
+