diff options
author | Romain Francoise <romain@orebokech.com> | 2005-11-01 11:48:27 +0000 |
---|---|---|
committer | Romain Francoise <romain@orebokech.com> | 2005-11-01 11:48:27 +0000 |
commit | fcfd1470f571079ff69b7f44c4dc1dfee09ce119 (patch) | |
tree | 3cf08b8f40ff8c7bf7927a20f995aa13f83f53dc /Makefile.in | |
parent | 83b8c614d689beef1f81103399b034bb10f0ccee (diff) | |
download | emacs-fcfd1470f571079ff69b7f44c4dc1dfee09ce119.tar.gz |
* configure.in: Check for gzip.
* Makefile.in (install): Compress source files.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 56551e319ce..00941a9e69a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -223,6 +223,9 @@ INSTALL_INFO = @INSTALL_INFO@ # By default, we uphold the dignity of our programs. INSTALL_STRIP = +# We use gzip to compress installed .el files. +GZIP = @GZIP@ + # ============================= Targets ============================== # Program name transformation. @@ -475,6 +478,14 @@ install-arch-indep: mkdir info (cd ${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ; \ else true; fi -unset CDPATH; \ + if [ -n "${GZIP}" ]; \ + then \ + echo "Compressing *.el ..." ; \ + (cd ${lispdir}; for f in `find . -name "*.elc" -print`; do \ + ${GZIP} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ + done) \ + else true; fi + -unset CDPATH; \ thisdir=`/bin/pwd`; \ if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ then \ |