diff options
| author | Pavel Janík | 2001-11-15 20:37:20 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-11-15 20:37:20 +0000 |
| commit | a4663feda25659a2119c8f60237f28595ab18e4d (patch) | |
| tree | aa913e4a134278585769890cafa1650a01d429a6 | |
| parent | 71f94ae1276f0af8c0700bff907b539440a0f996 (diff) | |
| download | emacs-a4663feda25659a2119c8f60237f28595ab18e4d.tar.gz emacs-a4663feda25659a2119c8f60237f28595ab18e4d.zip | |
Add support for --program-prefix, --program-suffix
and --program-transform-name options.
| -rw-r--r-- | Makefile.in | 12 | ||||
| -rw-r--r-- | configure.in | 4 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 15 |
3 files changed, 22 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index d702c84efba..76072df1b33 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -202,8 +202,12 @@ INSTALL_STRIP = | |||
| 202 | 202 | ||
| 203 | # ============================= Targets ============================== | 203 | # ============================= Targets ============================== |
| 204 | 204 | ||
| 205 | # Program name transformation. | ||
| 206 | TRANSFORM = @program_transform_name@ | ||
| 207 | |||
| 205 | # What emacs should be called when installed. | 208 | # What emacs should be called when installed. |
| 206 | EMACS = emacs | 209 | EMACS = `echo emacs | sed '$(TRANSFORM)'` |
| 210 | EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'` | ||
| 207 | 211 | ||
| 208 | # Subdirectories to make recursively. `lisp' is not included | 212 | # Subdirectories to make recursively. `lisp' is not included |
| 209 | # because the compiled lisp files are part of the distribution | 213 | # because the compiled lisp files are part of the distribution |
| @@ -331,10 +335,10 @@ install-arch-dep: mkdir | |||
| 331 | exec_prefix=${exec_prefix} bindir=${bindir} \ | 335 | exec_prefix=${exec_prefix} bindir=${bindir} \ |
| 332 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ | 336 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ |
| 333 | INSTALL_STRIP=${INSTALL_STRIP}) | 337 | INSTALL_STRIP=${INSTALL_STRIP}) |
| 334 | ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version} | 338 | ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/${EMACSFULL} |
| 335 | -chmod 1755 ${bindir}/emacs-${version} | 339 | -chmod 1755 ${bindir}/$(EMACSFULL) |
| 336 | rm -f ${bindir}/$(EMACS) | 340 | rm -f ${bindir}/$(EMACS) |
| 337 | -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) | 341 | -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS) |
| 338 | -unset CDPATH; \ | 342 | -unset CDPATH; \ |
| 339 | for f in `cd lib-src && echo fns-*.el`; do \ | 343 | for f in `cd lib-src && echo fns-*.el`; do \ |
| 340 | if test -r lib-src/$$f ; then \ | 344 | if test -r lib-src/$$f ; then \ |
diff --git a/configure.in b/configure.in index 5f4156896c1..612297a7fcb 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -27,6 +27,10 @@ AC_PREREQ(2.50)dnl | |||
| 27 | AC_INIT(src/lisp.h) | 27 | AC_INIT(src/lisp.h) |
| 28 | AC_CONFIG_HEADER(src/config.h:src/config.in) | 28 | AC_CONFIG_HEADER(src/config.h:src/config.in) |
| 29 | 29 | ||
| 30 | dnl Support for --program-prefix, --program-suffix and | ||
| 31 | dnl --program-transform-name options | ||
| 32 | AC_ARG_PROGRAM | ||
| 33 | |||
| 30 | lispdir='${datadir}/emacs/${version}/lisp' | 34 | lispdir='${datadir}/emacs/${version}/lisp' |
| 31 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | 35 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
| 32 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | 36 | '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index a4b6b07fc41..592b2de8c03 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -31,6 +31,9 @@ YACC=@YACC@ | |||
| 31 | version=@version@ | 31 | version=@version@ |
| 32 | configuration=@configuration@ | 32 | configuration=@configuration@ |
| 33 | 33 | ||
| 34 | # Program name transformation. | ||
| 35 | TRANSFORM = @program_transform_name@ | ||
| 36 | |||
| 34 | # ==================== Where To Install Things ==================== | 37 | # ==================== Where To Install Things ==================== |
| 35 | 38 | ||
| 36 | # The default location for installation. Everything is placed in | 39 | # The default location for installation. Everything is placed in |
| @@ -296,17 +299,19 @@ install: ${archlibdir} | |||
| 296 | @echo | 299 | @echo |
| 297 | @echo "Installing utilities for users to run." | 300 | @echo "Installing utilities for users to run." |
| 298 | for file in ${INSTALLABLES} ; do \ | 301 | for file in ${INSTALLABLES} ; do \ |
| 299 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} ${bindir}/$${file} ; \ | 302 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
| 300 | chmod a+rx ${bindir}/$${file}; \ | 303 | chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ |
| 301 | done | 304 | done |
| 302 | for file in ${INSTALLABLE_SCRIPTS} ; do \ | 305 | for file in ${INSTALLABLE_SCRIPTS} ; do \ |
| 303 | $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file} ; \ | 306 | $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
| 304 | chmod a+rx ${bindir}/$${file}; \ | 307 | chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ |
| 305 | done | 308 | done |
| 306 | 309 | ||
| 307 | uninstall: | 310 | uninstall: |
| 308 | (cd ${bindir}; \ | 311 | (cd ${bindir}; \ |
| 309 | rm -f ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}) | 312 | for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ |
| 313 | rm -f ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ | ||
| 314 | done) | ||
| 310 | (cd ${archlibdir}; \ | 315 | (cd ${archlibdir}; \ |
| 311 | rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) | 316 | rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) |
| 312 | 317 | ||