diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 8c52b263..2fc919af 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,6 @@ libledger_la_SOURCES = \ config.cc \ datetime.cc \ derive.cc \ - emacs.cc \ format.cc \ journal.cc \ mask.cc \ @@ -21,6 +20,10 @@ libledger_la_SOURCES = \ valexpr.cc \ value.cc \ walk.cc +if USE_EDITOR +libledger_la_CXXFLAGS += -DUSE_EDITOR=1 +libledger_la_SOURCES += emacs.cc +endif if HAVE_EXPAT libledger_la_CXXFLAGS += -DHAVE_EXPAT=1 libledger_la_SOURCES += gnucash.cc xml.cc |