diff options
| author | Eli Zaretskii | 2013-04-18 19:49:58 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-04-18 19:49:58 +0300 |
| commit | da53c452e5a1c7201cfe9fd5cd94b63414a11b9e (patch) | |
| tree | ba11ea47ccef1bb696e4978bd87f3fcff8d3cd4d | |
| parent | 4f0e6095fc0bcc8b9e8bcf6bf907b957b15cf699 (diff) | |
| download | emacs-da53c452e5a1c7201cfe9fd5cd94b63414a11b9e.tar.gz emacs-da53c452e5a1c7201cfe9fd5cd94b63414a11b9e.zip | |
Separated Windows specific install and uninstall targets as suggested by Paul Eggert.
| -rw-r--r-- | Makefile.in | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Makefile.in b/Makefile.in index af4b4c011ac..13b452d30d1 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -433,13 +433,14 @@ $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS) | |||
| 433 | # ==================== Installation ==================== | 433 | # ==================== Installation ==================== |
| 434 | 434 | ||
| 435 | .PHONY: install install-arch-dep install-arch-indep install-doc install-info | 435 | .PHONY: install install-arch-dep install-arch-indep install-doc install-info |
| 436 | .PHONY: install-man install-etc install-strip uninstall | 436 | .PHONY: install-man install-etc install-strip install-$(NTDIR) |
| 437 | .PHONY: uninstall uninstall-$(NTDIR) | ||
| 437 | 438 | ||
| 438 | ## If we let lib-src do its own installation, that means we | 439 | ## If we let lib-src do its own installation, that means we |
| 439 | ## don't have to duplicate the list of utilities to install in | 440 | ## don't have to duplicate the list of utilities to install in |
| 440 | ## this Makefile as well. | 441 | ## this Makefile as well. |
| 441 | 442 | ||
| 442 | install: all install-arch-indep install-doc install-arch-dep blessmail | 443 | install: all install-arch-indep install-doc install-arch-dep install-$(NTDIR) blessmail |
| 443 | @true | 444 | @true |
| 444 | 445 | ||
| 445 | ## Ensure that $subdir contains a subdirs.el file. | 446 | ## Ensure that $subdir contains a subdirs.el file. |
| @@ -460,7 +461,7 @@ write_subdir=if [ -f $${subdir}/subdirs.el ]; \ | |||
| 460 | ### Install the executables that were compiled specifically for this machine. | 461 | ### Install the executables that were compiled specifically for this machine. |
| 461 | ### We do install-arch-indep first because the executable needs the | 462 | ### We do install-arch-indep first because the executable needs the |
| 462 | ### Lisp files and DOC file to work properly. | 463 | ### Lisp files and DOC file to work properly. |
| 463 | install-arch-dep: src install-arch-indep install-doc | 464 | install-arch-dep: src install-arch-indep install-doc install-$(NTDIR) |
| 464 | umask 022; ${MKDIR_P} $(DESTDIR)${bindir} | 465 | umask 022; ${MKDIR_P} $(DESTDIR)${bindir} |
| 465 | cd lib-src && \ | 466 | cd lib-src && \ |
| 466 | $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 467 | $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
| @@ -479,13 +480,16 @@ install-arch-dep: src install-arch-indep install-doc | |||
| 479 | ${write_subdir} || exit 1; \ | 480 | ${write_subdir} || exit 1; \ |
| 480 | rm -rf ${ns_appresdir}/share; \ | 481 | rm -rf ${ns_appresdir}/share; \ |
| 481 | fi | 482 | fi |
| 482 | if test "x$(NTDIR)" != "x"; then \ | 483 | |
| 483 | cd $(NTDIR) && \ | 484 | ### Windows-specific install target for installing programs produced |
| 484 | $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 485 | ### in nt/, and its Posix do-nothing shadow. |
| 485 | exec_prefix=${exec_prefix} bindir=${bindir} \ | 486 | install-: |
| 486 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ | 487 | install-nt: |
| 487 | INSTALL_STRIP=${INSTALL_STRIP}; \ | 488 | cd $(NTDIR) && \ |
| 488 | fi | 489 | $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
| 490 | exec_prefix=${exec_prefix} bindir=${bindir} \ | ||
| 491 | libexecdir=${libexecdir} archlibdir=${archlibdir} \ | ||
| 492 | INSTALL_STRIP=${INSTALL_STRIP} | ||
| 489 | 493 | ||
| 490 | ## In the share directory, we are deleting: | 494 | ## In the share directory, we are deleting: |
| 491 | ## applications (with emacs.desktop, also found in etc/) | 495 | ## applications (with emacs.desktop, also found in etc/) |
| @@ -711,18 +715,12 @@ install-strip: | |||
| 711 | ### create (but not the noninstalled files such as `make all' would create). | 715 | ### create (but not the noninstalled files such as `make all' would create). |
| 712 | ### | 716 | ### |
| 713 | ### Don't delete the lisp and etc directories if they're in the source tree. | 717 | ### Don't delete the lisp and etc directories if they're in the source tree. |
| 714 | uninstall: | 718 | uninstall: uninstall-$(NTDIR) |
| 715 | cd lib-src && \ | 719 | cd lib-src && \ |
| 716 | $(MAKE) $(MFLAGS) uninstall \ | 720 | $(MAKE) $(MFLAGS) uninstall \ |
| 717 | prefix=${prefix} exec_prefix=${exec_prefix} \ | 721 | prefix=${prefix} exec_prefix=${exec_prefix} \ |
| 718 | bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir} | 722 | bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir} |
| 719 | 723 | ||
| 720 | if test "x$(NTDIR)" != "x"; then \ | ||
| 721 | cd $(NTDIR) && \ | ||
| 722 | $(MAKE) $(MFLAGS) uninstall \ | ||
| 723 | prefix=${prefix} exec_prefix=${exec_prefix} \ | ||
| 724 | bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}; \ | ||
| 725 | fi | ||
| 726 | -unset CDPATH; \ | 724 | -unset CDPATH; \ |
| 727 | for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ | 725 | for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ |
| 728 | if [ -d $${dir} ]; then \ | 726 | if [ -d $${dir} ]; then \ |
| @@ -767,6 +765,15 @@ uninstall: | |||
| 767 | [ -s $${file} ] || rm -f $$file; \ | 765 | [ -s $${file} ] || rm -f $$file; \ |
| 768 | done | 766 | done |
| 769 | 767 | ||
| 768 | ### Windows-specific uninstall target for removing programs produced | ||
| 769 | ### in nt/, and its Posix do-nothing shadow. | ||
| 770 | uninstall-: | ||
| 771 | uninstall-nt: | ||
| 772 | cd $(NTDIR) && \ | ||
| 773 | $(MAKE) $(MFLAGS) uninstall \ | ||
| 774 | prefix=${prefix} exec_prefix=${exec_prefix} \ | ||
| 775 | bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir} | ||
| 776 | |||
| 770 | FRC: | 777 | FRC: |
| 771 | 778 | ||
| 772 | # ==================== Cleaning up and miscellanea ==================== | 779 | # ==================== Cleaning up and miscellanea ==================== |