aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorPavel Janík <[email protected]>2001-11-15 20:37:20 +0000
committerPavel Janík <[email protected]>2001-11-15 20:37:20 +0000
commita4663feda25659a2119c8f60237f28595ab18e4d (patch)
treeaa913e4a134278585769890cafa1650a01d429a6 /Makefile.in
parent71f94ae1276f0af8c0700bff907b539440a0f996 (diff)
Add support for --program-prefix, --program-suffix
and --program-transform-name options.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index d702c84efb..76072df1b3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -202,8 +202,12 @@ INSTALL_STRIP =
# ============================= Targets ==============================
+# Program name transformation.
+TRANSFORM = @program_transform_name@
+
# What emacs should be called when installed.
-EMACS = emacs
+EMACS = `echo emacs | sed '$(TRANSFORM)'`
+EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`
# Subdirectories to make recursively. `lisp' is not included
# because the compiled lisp files are part of the distribution
@@ -331,10 +335,10 @@ install-arch-dep: mkdir
exec_prefix=${exec_prefix} bindir=${bindir} \
libexecdir=${libexecdir} archlibdir=${archlibdir} \
INSTALL_STRIP=${INSTALL_STRIP})
- ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version}
- -chmod 1755 ${bindir}/emacs-${version}
+ ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/${EMACSFULL}
+ -chmod 1755 ${bindir}/$(EMACSFULL)
rm -f ${bindir}/$(EMACS)
- -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
+ -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS)
-unset CDPATH; \
for f in `cd lib-src && echo fns-*.el`; do \
if test -r lib-src/$$f ; then \