diff --git a/Makefile.in b/Makefile.in index 67e15cf..67c14f2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -499,10 +499,13 @@ install-arch-dep: endif -chmod 755 "$(DESTDIR)${bindir}/$(EMACSFULL)" ifndef NO_BIN_LINK +ifeq ($(NTDIR),nt) + cd "$(DESTDIR)${bindir}" && mv "$(EMACSFULL)" "$(EMACS)" +else rm -f "$(DESTDIR)${bindir}/$(EMACS)" cd "$(DESTDIR)${bindir}" && $(LN_S_FILEONLY) "$(EMACSFULL)" "$(EMACS)" endif -else +endif subdir=${ns_appresdir}/site-lisp && ${write_subdir} rm -rf ${ns_appresdir}/share endif diff --git a/nt/Makefile.in b/nt/Makefile.in index 6bdf824..7af6e78 100644 --- a/nt/Makefile.in +++ b/nt/Makefile.in @@ -167,7 +167,7 @@ LINK_CFLAGS = ## Unused. CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} -all: ${EXE_FILES} +all: ${EXE_FILES} emacs-$(version).cmd .PHONY: all @@ -194,6 +194,7 @@ install: for file in ${INSTALLABLES} ; do \ $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ done + $(INSTALL_PROGRAM) emacs-$(version).cmd "$(DESTDIR)${bindir}" ${MKDIR_P} "$(DESTDIR)${datadir}/emacs/$(version)" $(INSTALL_DATA) ${srcdir}/README.W32 "$(DESTDIR)${datadir}/emacs/$(version)" @@ -251,6 +252,10 @@ cmdproxy${EXEEXT}: runemacs${EXEEXT}: ${srcdir}/runemacs.c $(EMACSRES) $(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $^ -mwindows -o $@ +emacs-$(version).cmd: + echo '@echo off' > $@ + echo '%~dp0\emacs.exe %*' >> $@ + ## Also used in ../src/Makefile. emacs.res ../src/emacs.res: emacs.rc ${srcdir}/icons/emacs.ico \ ${srcdir}/icons/hand.cur ${srcdir}/$(EMACS_MANIFEST)