### @configure_input@
-# Copyright (C) 1997-2013 Free Software Foundation, Inc.
+# Copyright (C) 1997-2014 Free Software Foundation, Inc.
# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
# 2006, 2007, 2008, 2009, 2010, 2011
# National Institute of Advanced Industrial Science and Technology (AIST)
# Where the generated files go.
leimdir = ${srcdir}/../lisp/leim
+# Prevent any settings in the user environment causing problems.
+unexport EMACSDATA EMACSDOC EMACSPATH
+
# Which Emacs to use to convert TIT files to Emacs Lisp files,
# and generate the file leim-list.el.
EMACS = ../src/emacs
# How to run Emacs.
# Prevent any setting of EMACSLOADPATH in user environment causing problems.
-RUN_EMACS = EMACSLOADPATH= "${EMACS}" -batch --no-site-file --no-site-lisp
+RUN_EMACS = EMACSLOADPATH= '$(EMACS)' -batch --no-site-file --no-site-lisp
MKDIR_P = @MKDIR_P@
rm -f $@
${RUN_EMACS} -l international/quail \
--eval "(update-leim-list-file (unmsys--file-name \"${leimdir}\"))"
- sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@
+ sed -n -e '/^[^;]/p' -e 's/^;\(;*\)inc /;\1 /p' < ${srcdir}/leim-ext.el >> $@
${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
@$(MKDIR_P) $(leimdir)/ja-dic
.PHONY: bootstrap-clean distclean maintainer-clean extraclean
bootstrap-clean:
- rm -f ${TIT_MISC} ${TIT_MISC:.el=.elc} \
- ${leimdir}/leim-list.el changed.tit changed.misc
+ rm -f ${TIT_MISC} ${leimdir}/leim-list.el changed.tit changed.misc
distclean:
rm -f Makefile
## We do not delete ja-dic, even in a bootstrap, because it rarely
## changes and is slow to regenerate.
+## TODO? Could consider doing the same with TIT_MISC, though those
+## are much faster to generate.
extraclean:
rm -rf ${leimdir}/ja-dic