# HG changeset patch # User Andreas Schwab # Date 1044725278 0 # Node ID 5127a1bf36db7bd4d744da7106cf344ce8cba5d2 # Parent 05ebf42667987914e71f76554b707adf078eddb8 (EXEEXT): Define to @EXEEXT@ and use this variable instead of the substitution. diff -r 05ebf4266798 -r 5127a1bf36db Makefile.in --- a/Makefile.in Sat Feb 08 11:18:32 2003 +0000 +++ b/Makefile.in Sat Feb 08 17:27:58 2003 +0000 @@ -3,7 +3,7 @@ # DIST: that first. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # This file is part of GNU Emacs. @@ -69,6 +69,7 @@ C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@ YACC=@YACC@ +EXEEXT=@EXEEXT@ ### These help us choose version- and architecture-specific directories ### to install files in. @@ -215,8 +216,8 @@ TRANSFORM = @program_transform_name@ # What emacs should be called when installed. -EMACS = `echo emacs@EXEEXT@ | sed '$(TRANSFORM)'` -EMACSFULL = `echo emacs-${version}@EXEEXT@ | sed '$(TRANSFORM)'` +EMACS = `echo emacs${EXEEXT} | sed '$(TRANSFORM)'` +EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'` # Subdirectories to make recursively. `lisp' is not included # because the compiled lisp files are part of the distribution. @@ -358,7 +359,7 @@ exec_prefix=${exec_prefix} bindir=${bindir} \ libexecdir=${libexecdir} archlibdir=${archlibdir} \ INSTALL_STRIP=${INSTALL_STRIP}) - ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs@EXEEXT@ ${bindir}/$(EMACSFULL) + ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} ${bindir}/$(EMACSFULL) -chmod 1755 ${bindir}/$(EMACSFULL) rm -f ${bindir}/$(EMACS) -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS) @@ -735,7 +736,7 @@ bootstrap: bootstrap-clean-before info FRC (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) (cd src; $(MAKE) $(MFLAGS) bootstrap) - (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs@EXEEXT@) + (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT}) (cd src; $(MAKE) $(MFLAGS) mostlyclean) $(MAKE) $(MFLAGS) all (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) diff -r 05ebf4266798 -r 5127a1bf36db lib-src/Makefile.in --- a/lib-src/Makefile.in Sat Feb 08 11:18:32 2003 +0000 +++ b/lib-src/Makefile.in Sat Feb 08 17:27:58 2003 +0000 @@ -1,5 +1,6 @@ # Makefile for lib-src subdirectory in GNU Emacs. -# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002 Free Software Foundation, Inc. +# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002, 2003 +# Free Software Foundation, Inc. # This file is part of GNU Emacs. @@ -29,6 +30,7 @@ ALLOCA=@ALLOCA@ version=@version@ configuration=@configuration@ +EXEEXT=@EXEEXT@ # Program name transformation. TRANSFORM = @program_transform_name@ @@ -100,15 +102,15 @@ # Things that a user might actually run, # which should be installed in bindir. -INSTALLABLES = etags@EXEEXT@ ctags@EXEEXT@ emacsclient@EXEEXT@ b2m@EXEEXT@ ebrowse@EXEEXT@ +INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog # Things that Emacs runs internally, or during the build process, # which should not be installed in bindir. -UTILITIES= profile@EXEEXT@ digest-doc@EXEEXT@ sorted-doc@EXEEXT@ movemail@EXEEXT@ cvtmail@EXEEXT@ fakemail@EXEEXT@ \ - yow@EXEEXT@ hexl@EXEEXT@ update-game-score@EXEEXT@ +UTILITIES= profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} movemail${EXEEXT} cvtmail${EXEEXT} fakemail${EXEEXT} \ + yow${EXEEXT} hexl${EXEEXT} update-game-score${EXEEXT} -DONT_INSTALL= test-distrib@EXEEXT@ make-docfile@EXEEXT@ +DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT} # Like UTILITIES, but they're not system-dependent, and should not be # deleted by the distclean target. @@ -286,12 +288,12 @@ maybe-blessmail: BLESSMAIL #ifdef MOVEMAIL_NEEDS_BLESSING /* Don\'t charge ahead and do it! Let the installer decide. - ./blessmail ${archlibdir}/movemail@EXEEXT@ */ + ./blessmail ${archlibdir}/movemail${EXEEXT} */ @if [ `wc -l ${etc}DOC ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} -${libsrc}make-docfile@EXEEXT@: - cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile@EXEEXT@ +${libsrc}make-docfile${EXEEXT}: + cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT} /* Some systems define this to cause parallel Make-ing. */ #ifndef MAKE_PARALLEL #define MAKE_PARALLEL #endif -temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args@EXEEXT@ +temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ -o temacs ${STARTFILES} ${obj} ${otherobj} \ OBJECTS_MACHINE ${LIBES} @@ -931,7 +932,7 @@ /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE often contain options that have to do with using Emacs's crt0, which are only good with temacs. */ -prefix-args@EXEEXT@: prefix-args.c $(config_h) +prefix-args${EXEEXT}: prefix-args.c $(config_h) $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args /* Don't lose if this was not defined. */ @@ -1253,25 +1254,25 @@ ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ ${emacsapp}Contents/Resources/Emacs.rsrc -${emacsapp}Contents/MacOS/Emacs: emacs@EXEEXT@ +${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT} mkdir -p ${emacsapp}Contents/MacOS/; - cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs@EXEEXT@ Emacs@EXEEXT@ + cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT} ${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r /Developer/Tools/Rez -useDF \ -o ${emacsapp}Contents/Resources/Emacs.rsrc \ /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< #endif -${libsrc}emacstool@EXEEXT@: ${libsrc}emacstool.c - cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool@EXEEXT@ +${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c + cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT} bootstrapclean: - rm -f bootstrap-emacs@EXEEXT@ + rm -f bootstrap-emacs${EXEEXT} mostlyclean: - rm -f temacs@EXEEXT@ prefix-args@EXEEXT@ core *.core \#* *.o libXMenu11.a liblw.a + rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a rm -f ../etc/DOC - rm -f bootstrap-emacs@EXEEXT@ + rm -f bootstrap-emacs${EXEEXT} clean: mostlyclean - rm -f emacs-*@EXEEXT@ emacs@EXEEXT@ + rm -f emacs-*${EXEEXT} emacs${EXEEXT} /**/# This is used in making a distribution. /**/# Do not use it on development directories! distclean: clean @@ -1284,7 +1285,7 @@ @echo "it deletes files that may require special tools to rebuild." rm -f TAGS versionclean: - -rm -f emacs@EXEEXT@ emacs-* ../etc/DOC* + -rm -f emacs${EXEEXT} emacs-* ../etc/DOC* extraclean: distclean -rm -f *~ \#* m/?*~ s/?*~ @@ -1322,20 +1323,20 @@ /* Bootstrapping. */ -bootstrap: bootstrap-emacs@EXEEXT@ +bootstrap: bootstrap-emacs${EXEEXT} /* Dump an Emacs executable named bootstrap-emacs containing the files from loadup.el in source form. */ -bootstrap-emacs@EXEEXT@: temacs@EXEEXT@ +bootstrap-emacs${EXEEXT}: temacs${EXEEXT} #ifdef CANNOT_DUMP - ln temacs@EXEEXT@ bootstrap-emacs@EXEEXT@ + ln temacs${EXEEXT} bootstrap-emacs${EXEEXT} #else #ifdef HAVE_SHM ./temacs -nl -batch -l loadup bootstrap #else /* ! defined (HAVE_SHM) */ ./temacs --batch --load loadup bootstrap #endif /* ! defined (HAVE_SHM) */ - mv -f emacs@EXEEXT@ bootstrap-emacs@EXEEXT@ + mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT} #endif /* ! defined (CANNOT_DUMP) */