diff options
| author | Eli Zaretskii | 2006-03-03 12:02:31 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-03-03 12:02:31 +0000 |
| commit | 81af90607429e150c5e65c0bfc94cbf5c359678a (patch) | |
| tree | 36035966a96d2e3e3090c6c431b21d23b0c5745c /lib-src | |
| parent | 6e1fbe44cdeb041526e5d09512f6e563aa16f5f4 (diff) | |
| download | emacs-81af90607429e150c5e65c0bfc94cbf5c359678a.tar.gz emacs-81af90607429e150c5e65c0bfc94cbf5c359678a.zip | |
Add DESTDIR variable to install and uninstall targets to support staged
installations.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/Makefile.in | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 33af87019e0..85a7c13c95a 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -285,11 +285,11 @@ blessmail: | |||
| 285 | maybe-blessmail: BLESSMAIL | 285 | maybe-blessmail: BLESSMAIL |
| 286 | #ifdef MOVEMAIL_NEEDS_BLESSING | 286 | #ifdef MOVEMAIL_NEEDS_BLESSING |
| 287 | /* Don\'t charge ahead and do it! Let the installer decide. | 287 | /* Don\'t charge ahead and do it! Let the installer decide. |
| 288 | ./blessmail ${archlibdir}/movemail${EXEEXT} */ | 288 | ./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */ |
| 289 | @if [ `wc -l <blessmail` != 2 ] ; then \ | 289 | @if [ `wc -l <blessmail` != 2 ] ; then \ |
| 290 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | 290 | dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ |
| 291 | echo Assuming $$dir is really the mail spool directory, you should; \ | 291 | echo Assuming $$dir is really the mail spool directory, you should; \ |
| 292 | echo run lib-src/blessmail ${archlibdir}/movemail${EXEEXT}; \ | 292 | echo run lib-src/blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT}; \ |
| 293 | echo as root, to give movemail${EXEEXT} appropriate permissions.; \ | 293 | echo as root, to give movemail${EXEEXT} appropriate permissions.; \ |
| 294 | echo Do that after running make install.; \ | 294 | echo Do that after running make install.; \ |
| 295 | fi | 295 | fi |
| @@ -297,50 +297,50 @@ maybe-blessmail: BLESSMAIL | |||
| 297 | 297 | ||
| 298 | /* Install the internal utilities. Until they are installed, we can | 298 | /* Install the internal utilities. Until they are installed, we can |
| 299 | just run them directly from lib-src. */ | 299 | just run them directly from lib-src. */ |
| 300 | ${archlibdir}: all | 300 | $(DESTDIR)${archlibdir}: all |
| 301 | @echo | 301 | @echo |
| 302 | @echo "Installing utilities run internally by Emacs." | 302 | @echo "Installing utilities run internally by Emacs." |
| 303 | $(top_srcdir)/mkinstalldirs ${archlibdir} | 303 | $(top_srcdir)/mkinstalldirs $(DESTDIR)${archlibdir} |
| 304 | if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ | 304 | if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ |
| 305 | for file in ${UTILITIES}; do \ | 305 | for file in ${UTILITIES}; do \ |
| 306 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \ | 306 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ |
| 307 | done ; \ | 307 | done ; \ |
| 308 | fi | 308 | fi |
| 309 | $(top_srcdir)/mkinstalldirs ${gamedir} | 309 | $(top_srcdir)/mkinstalldirs $(DESTDIR)${gamedir} |
| 310 | touch ${gamedir}/snake-scores | 310 | touch $(DESTDIR)${gamedir}/snake-scores |
| 311 | touch ${gamedir}/tetris-scores | 311 | touch $(DESTDIR)${gamedir}/tetris-scores |
| 312 | /* If the following commands fail, that is not a big deal. | 312 | /* If the following commands fail, that is not a big deal. |
| 313 | update-game-score will detect at runtime that it is not setuid, | 313 | update-game-score will detect at runtime that it is not setuid, |
| 314 | and handle things accordingly. */ | 314 | and handle things accordingly. */ |
| 315 | -if chown ${gameuser} ${archlibdir}/update-game-score && chmod u+s ${archlibdir}/update-game-score; then \ | 315 | -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score && chmod u+s $(DESTDIR)${archlibdir}/update-game-score; then \ |
| 316 | chown ${gameuser} ${gamedir}; \ | 316 | chown ${gameuser} $(DESTDIR)${gamedir}; \ |
| 317 | chmod u=rwx,g=rwx,o=rx ${gamedir}; \ | 317 | chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ |
| 318 | fi | 318 | fi |
| 319 | if [ `(cd ${archlibdir} && /bin/pwd)` \ | 319 | if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` \ |
| 320 | != `(cd ${srcdir} && /bin/pwd)` ]; then \ | 320 | != `(cd ${srcdir} && /bin/pwd)` ]; then \ |
| 321 | for file in ${SCRIPTS}; do \ | 321 | for file in ${SCRIPTS}; do \ |
| 322 | $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file; \ | 322 | $(INSTALL_PROGRAM) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ |
| 323 | done ; \ | 323 | done ; \ |
| 324 | fi | 324 | fi |
| 325 | 325 | ||
| 326 | install: ${archlibdir} | 326 | install: $(DESTDIR)${archlibdir} |
| 327 | @echo | 327 | @echo |
| 328 | @echo "Installing utilities for users to run." | 328 | @echo "Installing utilities for users to run." |
| 329 | for file in ${INSTALLABLES} ; do \ | 329 | for file in ${INSTALLABLES} ; do \ |
| 330 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ | 330 | $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
| 331 | chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ | 331 | chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ |
| 332 | done | 332 | done |
| 333 | for file in ${INSTALLABLE_SCRIPTS} ; do \ | 333 | for file in ${INSTALLABLE_SCRIPTS} ; do \ |
| 334 | $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ | 334 | $(INSTALL_PROGRAM) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
| 335 | chmod a+rx ${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ | 335 | chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \ |
| 336 | done | 336 | done |
| 337 | 337 | ||
| 338 | uninstall: | 338 | uninstall: |
| 339 | (cd ${bindir}; \ | 339 | (cd $(DESTDIR)${bindir}; \ |
| 340 | for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ | 340 | for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \ |
| 341 | rm -f ${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ | 341 | rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ |
| 342 | done) | 342 | done) |
| 343 | (cd ${archlibdir}; \ | 343 | (cd $(DESTDIR)${archlibdir}; \ |
| 344 | rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) | 344 | rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) |
| 345 | 345 | ||
| 346 | mostlyclean: | 346 | mostlyclean: |