]> code.delx.au - gnu-emacs/blobdiff - leim/Makefile.in
(popup_activated): Define outside HAVE_MENUS.
[gnu-emacs] / leim / Makefile.in
index 7d550fa7598b2e28eb9cbfd111ce01c7a87a31b9..10ba277b473454c5ee17c18b32290f79abca5617 100644 (file)
@@ -1,9 +1,7 @@
 # Makefile for leim subdirectory in GNU Emacs.
-# Copyright (C) 1997,98,1999,2000,2001 Electrotechnical Laboratory, JAPAN.
-#   Licensed to the Free Software Foundation.
-# Copyright (C) 1997,98,1999,2000,01,02,03,2004
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 #   Free Software Foundation, Inc.
-# Copyright (C) 2001,02,03,2004
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 #   National Institute of Advanced Industrial Science and Technology (AIST)
 #   Registration Number H14PRO021
 
@@ -35,7 +33,9 @@ datadir=@datadir@
 srcdir=@srcdir@
 
 # Where to install LEIM files.
-INSTALLDIR=${datadir}/emacs/${version}/leim
+INSTALLDIR=$(DESTDIR)${datadir}/emacs/${version}/leim
+
+GZIP_PROG = @GZIP_PROG@
 
 # On Xenix and the IBM RS6000, double-dot gets screwed up.
 dot = .
@@ -47,7 +47,7 @@ BUILT-EMACS = ${dot}${dot}/src/emacs
 buildlisppath=${srcdir}/${dot}${dot}/lisp
 
 # How to run Emacs.
-RUN-EMACS = EMACSLOADPATH=$(buildlisppath) \
+RUN-EMACS = EMACSLOADPATH=$(buildlisppath) LC_ALL=C\
        ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
 
 # Subdirectories to be made if ${srcdir} is different from the current
@@ -216,6 +216,9 @@ leim-list.el: ${SUBDIRS} ${NON-TIT-MISC} changed.tit changed.misc ${srcdir}/leim
        sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@
 
 install: all
+       if [ ! -d ${INSTALLDIR} ] ; then \
+          ${srcdir}/${dot}${dot}/mkinstalldirs ${INSTALLDIR}; \
+       else true; fi
        if [ x`(cd ${INSTALLDIR} && /bin/pwd)` != x`(/bin/pwd)` ] ; then \
          rm -rf ${INSTALLDIR}/leim-list.el; \
          rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/ja-dic ; \
@@ -238,12 +241,26 @@ install: all
          rm -f  ${INSTALLDIR}/*~         ${INSTALLDIR}/*/*~ ; \
          rm -f  ${INSTALLDIR}/*.orig     ${INSTALLDIR}/*/*.orig ; \
        else true; fi
+       -unset CDPATH; \
+       if [ -n "${GZIP_PROG}" ]; \
+       then \
+          echo "Compressing *.el ..." ; \
+          (cd ${INSTALLDIR}; for f in `find . -name "*.elc" -print`; do \
+               ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \
+           done) \
+       else true; fi
        -chmod -R a+r ${INSTALLDIR}
 
 clean mostlyclean:
        rm -f ${TIT-MISC} ${TIT-MISC:.elc=.el} \
                leim-list.el changed.tit changed.misc
 
+# The following target is needed because the `clean' target only removes
+# TIT-generated files and doesn't touch compiled Quail packages.  But
+# bootstrapping should not leave non-fresh .elc files behind.
+bootstrap-clean: clean
+       rm -f ${WORLD}
+
 distclean: clean
        if test -f stamp-subdir; then rm -rf ${SUBDIRS} stamp-subdir; fi
        rm -f Makefile