summaryrefslogtreecommitdiff
path: root/lisp/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/CMakeLists.txt')
-rw-r--r--lisp/CMakeLists.txt52
1 files changed, 30 insertions, 22 deletions
diff --git a/lisp/CMakeLists.txt b/lisp/CMakeLists.txt
index 2258fd5d..525e91aa 100644
--- a/lisp/CMakeLists.txt
+++ b/lisp/CMakeLists.txt
@@ -1,23 +1,24 @@
set(EMACS_LISP_SOURCES
- ldg-commodities.el
- ldg-complete.el
- ldg-exec.el
- ldg-fonts.el
- ldg-init.el
- ldg-mode.el
- ldg-new.el
- ldg-occur.el
- ldg-post.el
- ldg-reconcile.el
- ldg-regex.el
- ldg-report.el
- ldg-sort.el
- ldg-state.el
- ldg-test.el
- ldg-texi.el
- ldg-xact.el
- ldg-context.el
- ldg-schedule.el)
+ ledger-commodities.el
+ ledger-complete.el
+ ledger-exec.el
+ ledger-fonts.el
+ ledger-init.el
+ ledger-mode.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)
@@ -30,7 +31,7 @@ macro(add_emacs_lisp_target el)
OUTPUT ${el}c
COMMAND ${EMACS_EXECUTABLE}
-L ${CMAKE_CURRENT_BINARY_DIR}
- -l ${CMAKE_CURRENT_BINARY_DIR}/ldg-regex.el
+ -l ${CMAKE_CURRENT_BINARY_DIR}/ledger-regex.el
-batch -f batch-byte-compile
${CMAKE_CURRENT_BINARY_DIR}/${el}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el}
@@ -39,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)
@@ -47,8 +55,8 @@ 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}
- DESTINATION share/emacs/site-lisp)
+ install(FILES ${EMACS_LISP_SOURCES} ${EMACS_LISP_BINARIES} ${EMACS_LISP_UNCOMPILABLE}
+ DESTINATION share/emacs/site-lisp/ledger-mode)
endif()
### CMakeLists.txt ends here