diff options
author | John Wiegley <johnw@newartisans.com> | 2016-08-02 17:11:03 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2016-08-02 17:11:03 -0700 |
commit | 15d18d664f0e9c5e454bf4927f7d0e0bca02b0c2 (patch) | |
tree | fa07dc7d118f652950915f9d426bcec6363af435 /lisp/CMakeLists.txt | |
parent | a0502dc9eeec10e39fa23aad5c4bc47650454f2f (diff) | |
download | fork-ledger-15d18d664f0e9c5e454bf4927f7d0e0bca02b0c2.tar.gz fork-ledger-15d18d664f0e9c5e454bf4927f7d0e0bca02b0c2.tar.bz2 fork-ledger-15d18d664f0e9c5e454bf4927f7d0e0bca02b0c2.zip |
Emacs Lisp files have been moved to https://github.com/ledger/ledger-mode
Diffstat (limited to 'lisp/CMakeLists.txt')
-rw-r--r-- | lisp/CMakeLists.txt | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/lisp/CMakeLists.txt b/lisp/CMakeLists.txt deleted file mode 100644 index 9dee2abb..00000000 --- a/lisp/CMakeLists.txt +++ /dev/null @@ -1,65 +0,0 @@ -set(EMACS_LISP_SOURCES - ledger-commodities.el - ledger-complete.el - ledger-exec.el - ledger-fontify.el - ledger-fonts.el - ledger-fontify.el - ledger-init.el - ledger-mode.el - ledger-navigate.el - ledger-occur.el - ledger-post.el - ledger-reconcile.el - ledger-regex.el - ledger-report.el - ledger-schedule.el - ledger-sort.el - ledger-state.el - ledger-test.el - 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) - -macro(add_emacs_lisp_target el) - configure_file(${el} ${CMAKE_CURRENT_BINARY_DIR}/${el}) - - # add rule (i.e. command) how to generate the byte-compiled file - add_custom_command( - OUTPUT ${el}c - COMMAND ${EMACS_EXECUTABLE} - -L ${CMAKE_CURRENT_BINARY_DIR} - -l ${CMAKE_CURRENT_BINARY_DIR}/ledger-regex.el - -batch -f batch-byte-compile - ${CMAKE_CURRENT_BINARY_DIR}/${el} - DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Creating byte-compiled Emacs lisp ${CMAKE_CURRENT_BINARY_DIR}/${el}c") -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) - endforeach() - - 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} ${EMACS_LISP_UNCOMPILABLE} - DESTINATION share/emacs/site-lisp/ledger-mode) -endif() - -### CMakeLists.txt ends here |