# Makefile for leim subdirectory in GNU Emacs.
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+# 2006, 2007, 2008
# Free Software Foundation, Inc.
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+# 2006, 2007, 2008
# National Institute of Advanced Industrial Science and Technology (AIST)
# Registration Number H14PRO021
# This file is part of GNU Emacs.
-# GNU Emacs is free software; you can redistribute it and/or modify
+# GNU Emacs is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+
# You should have received a copy of the GNU General Public License
-# along with GNU Emacs; see the file COPYING. If not, write to the
-# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-# Boston, MA 02110-1301, USA.
+# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
# Avoid trouble on systems where the `SHELL' variable might be
# inherited from the environment.
datarootdir=@datarootdir@
datadir=@datadir@
srcdir=@srcdir@
+ns_appresdir=@ns_appresdir@
# Where to install LEIM files.
INSTALLDIR=$(DESTDIR)${datadir}/emacs/${version}/leim
GZIP_PROG = @GZIP_PROG@
-# On Xenix and the IBM RS6000, double-dot gets screwed up.
+# On IBM RS6000, double-dot gets screwed up.
dot = .
# Which Emacs to use to convert TIT files to Emacs Lisp files,
JAPANESE=${srcdir}/quail/japanese.elc ${srcdir}/ja-dic/ja-dic.elc
KOREAN= ${srcdir}/quail/hangul.elc \
- ${srcdir}/quail/hangul3.elc \
${srcdir}/quail/hanja.elc \
${srcdir}/quail/hanja3.elc \
${srcdir}/quail/hanja-jis.elc \
.SUFFIXES: .elc .el
.el.elc:
- ${RUN-EMACS} -f batch-byte-compile $<
+ @echo Compiling $<
+ @${RUN-EMACS} -f batch-byte-compile $<
all: ${BUILT-EMACS} ${SUBDIRS} leim-list.el ${WORLD}
echo "changed" > $@
leim-list.el: ${SUBDIRS} ${TIT-MISC} changed.tit changed.misc ${srcdir}/leim-ext.el
+ rm -rf leim-list.el
${RUN-EMACS} -l ${buildlisppath}/international/quail \
-f batch-byte-compile-if-not-done ${TIT-MISC:.elc=.el}
if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
done) \
else true; fi
-chmod -R a+r ${INSTALLDIR}
+ for installuser in $${LOGNAME} $${USERNAME} $${USER} \
+ `id -un 2> /dev/null`; do \
+ [ -n "$${installuser}" ] && break ; \
+ done ; \
+ find ${INSTALLDIR} -exec chown $${installuser} '{}' ';'
+ if [ "${ns_appresdir}" != "" ]; then \
+ ( cd ${ns_appresdir} ; \
+ if test -d share/emacs ; then mv -f share/emacs/*/* . ; fi ; \
+ rm -fr share ) ; \
+ else true ; fi
clean mostlyclean:
rm -f ${TIT-MISC} ${TIT-MISC:.elc=.el} \
extraclean: maintainer-clean
-rm -f *~ \#* m/?*~ s/?*~
+
+.PHONY: check-declare
+
+check-declare:
+ $(RUN-EMACS) -l $(buildlisppath)/emacs-lisp/check-declare \
+ --eval '(check-declare-directory "$(srcdir)")'