From 02cc9cbd79239c5948443ad2e2b7e93864c32a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 15 Nov 2010 12:43:55 +0100 Subject: [PATCH] Build system: new configure option "--enable-org-export" for compiling Org files --- .gitignore | 2 ++ configure.ac | 12 ++++++++++++ doc/internals/Makefile.am | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/.gitignore b/.gitignore index 085ac3946..03373f258 100644 --- a/.gitignore +++ b/.gitignore @@ -65,6 +65,8 @@ ylwrap !/doc/parallel/RWMH_quest1_*.pdf !/doc/parallel/waitbars*.pdf doc/m2html +doc/internals/*.html +doc/internals/ltxpng mex/build/matlab/run_m2html.m # Preprocessor diff --git a/configure.ac b/configure.ac index d84419091..e99a583db 100644 --- a/configure.ac +++ b/configure.ac @@ -204,6 +204,11 @@ if test "x$enable_octave" = "xyes"; then fi AM_CONDITIONAL([ENABLE_OCTAVE], [test "x$enable_octave" = "xyes"]) +# Enable exporting of Org files +# The clean way would be to test for Emacs, Org-mode, latex, dvipng... +AC_ARG_ENABLE([org-export], AS_HELP_STRING([--enable-org-export], [enable exporting of Org files (requires Emacs, org-mode and other external programs)])) +AM_CONDITIONAL([ENABLE_ORG_EXPORT], [test "x$enable_org_export" != "x"]) + # Construct final output message BUILD_PREPROCESSOR="yes" @@ -260,6 +265,12 @@ else BUILD_DYNARE_PREPROC_DOC="no (missing doxygen)" fi +if test "x$enable_org_export" != "x"; then + BUILD_DYNARE_INTERNAL_DOC="yes" +else + BUILD_DYNARE_INTERNAL_DOC="no (Org export not enabled)" +fi + if test "x$OCTAVE" != "x"; then TESTSUITE_OCTAVE="yes" else @@ -290,6 +301,7 @@ PDF documentation (with "make pdf"): HTML documentation (with "make html"): Dynare reference manual: $BUILD_DYNARE_HTML_MANUAL Dynare preprocessor developer doc: $BUILD_DYNARE_PREPROC_DOC + Dynare internal doc: $BUILD_DYNARE_INTERNAL_DOC Testsuites (run with "make check"): Dynare for Octave: $TESTSUITE_OCTAVE diff --git a/doc/internals/Makefile.am b/doc/internals/Makefile.am index 4d3dd901b..86102c129 100644 --- a/doc/internals/Makefile.am +++ b/doc/internals/Makefile.am @@ -1 +1,9 @@ EXTRA_DIST = dynare-internals.org + +if ENABLE_ORG_EXPORT +html-local: + emacs --batch --visit=dynare-internals.org --funcall org-export-as-html-batch +endif + +clean-local: + rm -rf *.html ltxpng