diff Makefile.in @ 66609:9578bb750e29

* configure.in: Check for gzip. * Makefile.in (install): Compress source files.
author Romain Francoise <romain@orebokech.com>
date Tue, 01 Nov 2005 11:48:27 +0000
parents 18b565312060
children d3f9ffbaf324
line wrap: on
line diff
--- a/Makefile.in	Tue Nov 01 10:39:42 2005 +0000
+++ b/Makefile.in	Tue Nov 01 11:48:27 2005 +0000
@@ -223,6 +223,9 @@
 # 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 @@
 	   (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 \