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
commite8439d3466c7956d57b9a879d020ac616e1bb379 (patch)
tree2e2c4f92e696711b93ca54a73970c6e743124547 /Makefile.in
parent7bba5cae0193b86faecbd6dd7b343bedfde2a4eb (diff)
downloademacs-e8439d3466c7956d57b9a879d020ac616e1bb379.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 \