]> code.delx.au - gnu-emacs/blobdiff - leim/Makefile.in
(Table of Resources): Remove xref to non-existent node "LessTif Resources".
[gnu-emacs] / leim / Makefile.in
index 3f5e61b98a3a4dd8636a91d1a20990a863737e56..7f354e7cd759a14568a133afd6fbd1af25042618 100644 (file)
@@ -1,6 +1,9 @@
 # Makefile for leim subdirectory in GNU Emacs.
-# Copyright (C) 1997, 2004 Electrotechnical Laboratory, JAPAN.
-# Licensed to the Free Software Foundation.
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+#   Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+#   National Institute of Advanced Industrial Science and Technology (AIST)
+#   Registration Number H14PRO021
 
 # This file is part of GNU Emacs.
 
@@ -16,8 +19,8 @@
 #
 # 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., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
 
 # Avoid trouble on systems where the `SHELL' variable might be
 # inherited from the environment.
@@ -30,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 = .
@@ -42,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
@@ -121,7 +126,8 @@ OTHERS= \
        ${srcdir}/quail/ethiopic.elc \
        ${srcdir}/quail/ipa.elc \
        ${srcdir}/quail/hebrew.elc \
-       ${srcdir}/quail/georgian.elc
+       ${srcdir}/quail/georgian.elc \
+       ${srcdir}/quail/sisheng.elc
 
 MISC= \
        quail/tsang-b5.elc      \
@@ -173,8 +179,13 @@ TIT-SOURCES= \
        ${srcdir}/CXTERM-DIC/TONEPY.tit \
        ${srcdir}/CXTERM-DIC/ZOZY.tit
 
+${CHINESE-TIT:.elc=.el}: changed.tit
+       @true
+
 changed.tit: ${TIT-SOURCES}
-       echo "0" > $@
+       ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
+         -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \
+         echo "changed" > $@
 
 MISC-SOURCES= \
        ${srcdir}/MISC-DIC/CTLau-b5.html \
@@ -184,20 +195,15 @@ MISC-SOURCES= \
        ${srcdir}/MISC-DIC/pinyin.map \
        ${srcdir}/MISC-DIC/ziranma.cin
 
+${MISC:.elc=.el}: changed.misc
+       @true
+
 changed.misc: ${MISC-SOURCES}
-       echo "0" > $@
+       ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
+         -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \
+         echo "changed" > $@
 
-leim-list.el: ${SUBDIRS} ${NON-TIT-MISC} changed.tit changed.misc
-       if [ `(cat changed.tit)` = 0 ] ; then \
-         ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
-           -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \
-         echo "1" > changed.tit; \
-       else true; fi
-       if [ `(cat changed.misc)` = 0 ] ; then \
-         ${RUN-EMACS} -l ${buildlisppath}/international/titdic-cnv \
-           -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \
-         echo "1" > changed.misc; \
-       else true; fi
+leim-list.el: ${SUBDIRS} ${NON-TIT-MISC} changed.tit changed.misc ${srcdir}/leim-ext.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 \
@@ -207,6 +213,7 @@ leim-list.el: ${SUBDIRS} ${NON-TIT-MISC} changed.tit changed.misc
          ${RUN-EMACS} -l ${buildlisppath}/international/quail \
            --eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \
        fi
+       sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@
 
 install: all
        if [ x`(cd ${INSTALLDIR} && /bin/pwd)` != x`(/bin/pwd)` ] ; then \
@@ -225,11 +232,20 @@ install: all
          fi; \
          rm -rf ${INSTALLDIR}/CVS        ${INSTALLDIR}/*/CVS; \
          rm -f  ${INSTALLDIR}/.cvsignore ${INSTALLDIR}/*/.cvsignore; \
+         rm -f  ${INSTALLDIR}/.arch-inventory ${INSTALLDIR}/*/.arch-inventory; \
          rm -f  ${INSTALLDIR}/\#*        ${INSTALLDIR}/*/\#* ; \
          rm -f  ${INSTALLDIR}/.\#*       ${INSTALLDIR}/*/.\#* ; \
          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:
@@ -245,5 +261,3 @@ maintainer-clean: distclean
 
 extraclean: maintainer-clean
        -rm -f *~ \#* m/?*~ s/?*~
-
-# arch-tag: f666a939-8145-4d64-a6a6-cc1f61bd32ca