summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2005-11-01 11:48:27 +0000
committerRomain Francoise <romain@orebokech.com>2005-11-01 11:48:27 +0000
commitfcfd1470f571079ff69b7f44c4dc1dfee09ce119 (patch)
tree3cf08b8f40ff8c7bf7927a20f995aa13f83f53dc /Makefile.in
parent83b8c614d689beef1f81103399b034bb10f0ccee (diff)
downloademacs-fcfd1470f571079ff69b7f44c4dc1dfee09ce119.tar.gz
* configure.in: Check for gzip.
* Makefile.in (install): Compress source files.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
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 \