diff options
author | Oskar Kohout <oskar@evilbit.at> | 2014-01-04 11:52:23 +0100 |
---|---|---|
committer | Oskar Kohout <oskar@evilbit.at> | 2014-01-04 11:52:23 +0100 |
commit | ba60418991162715a42044b67e594d50ede2de14 (patch) | |
tree | bf2b8372924db12f8d7edab4a63c8e60355762d4 /lisp | |
parent | bde5e69c9acf54e0d9f6eec7f380a15f82d3102e (diff) | |
download | fork-ledger-ba60418991162715a42044b67e594d50ede2de14.tar.gz fork-ledger-ba60418991162715a42044b67e594d50ede2de14.tar.bz2 fork-ledger-ba60418991162715a42044b67e594d50ede2de14.zip |
Fix emacs lisp build chain
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/CMakeLists.txt b/lisp/CMakeLists.txt index 33fe6f14..41e41209 100644 --- a/lisp/CMakeLists.txt +++ b/lisp/CMakeLists.txt @@ -17,6 +17,9 @@ set(EMACS_LISP_SOURCES ledger-texi.el ledger-xact.el) +set(EMACS_LISP_SOURCES_UNCOMPILABLE + ledger-context.el) + # find emacs and complain if not found find_program(EMACS_EXECUTABLE emacs) @@ -37,6 +40,13 @@ macro(add_emacs_lisp_target el) endmacro(add_emacs_lisp_target el) if(EMACS_EXECUTABLE) + # uncompilable .el files + foreach(el ${EMACS_LISP_SOURCES_UNCOMPILABLE}) + configure_file(${el} ${CMAKE_CURRENT_BINARY_DIR}/${el}) + list(APPEND EMACS_LISP_UNCOMPILABLE ${CMAKE_CURRENT_BINARY_DIR}/${el}) + endforeach() + + # compilable .el files foreach(el ${EMACS_LISP_SOURCES}) add_emacs_lisp_target(${el}) list(APPEND EMACS_LISP_BINARIES ${CMAKE_CURRENT_BINARY_DIR}/${el}c) @@ -45,7 +55,7 @@ if(EMACS_EXECUTABLE) add_custom_target(emacs_lisp_byte_compile ALL DEPENDS ${EMACS_LISP_BINARIES}) # install the byte-compiled emacs-lisp sources - install(FILES ${EMACS_LISP_SOURCES} ${EMACS_LISP_BINARIES} + install(FILES ${EMACS_LISP_SOURCES} ${EMACS_LISP_BINARIES} ${EMACS_LISP_UNCOMPILABLE} DESTINATION share/emacs/site-lisp) endif() |