Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix emacs lisp build chain" #92

Merged
merged 1 commit into from Feb 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 2 additions & 11 deletions CMakeLists.txt
Expand Up @@ -4,6 +4,7 @@ set(EMACS_LISP_SOURCES
ledger-check.el
ledger-commodities.el
ledger-complete.el
ledger-context.el
ledger-exec.el
ledger-fontify.el
ledger-fonts.el
Expand All @@ -23,9 +24,6 @@ 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)

Expand All @@ -46,13 +44,6 @@ 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)
Expand All @@ -61,7 +52,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} ${EMACS_LISP_UNCOMPILABLE}
install(FILES ${EMACS_LISP_SOURCES} ${EMACS_LISP_BINARIES}
DESTINATION share/emacs/site-lisp/ledger-mode)
endif()

Expand Down