aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2010-03-21 12:57:49 +0100
committerAndreas Schwab2010-03-21 12:57:49 +0100
commit82c3d67afb365ecba2c3823beecc25606a8e9d70 (patch)
tree10350f129b077caf0dd1170b446fc43e488f4fd6 /src
parentc0282183ba4a5b62292627a51726426479bf4272 (diff)
downloademacs-82c3d67afb365ecba2c3823beecc25606a8e9d70.tar.gz
emacs-82c3d67afb365ecba2c3823beecc25606a8e9d70.zip
Use absolute directory names substituted by configure
* lisp/Makefile.in (top_srcdir): Define. (abs_top_builddir): Define. (srcdir): Don't append `/..'. (EMACS): Use ${abs_top_builddir}. (all, compile, compile-always, compile-last): Don't set emacswd. (update-subdirs, update-authors): Use $(top_srcdir) instead of $(srcdir). (lisp): Use $(srcdir) instead of @srcdir@. * src/Makefile.in (abs_builddir): Define. (bootstrap_exe): Use it. (VPATH): Use $(srcdir) instead of @srcdir@.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/Makefile.in33
2 files changed, 19 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 80e10e2434f..39f37d4517c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,8 +1,8 @@
12010-03-21 Andreas Schwab <schwab@linux-m68k.org> 12010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2 2
3 * Makefile.in (.el.elc): Expand ${bootstrap_exe} before chdir. 3 * Makefile.in (abs_builddir): Define.
4 (${lispsource}loaddefs.el): Likewise. 4 (bootstrap_exe): Use it.
5 (bootstrap-emacs${EXEEXT}): Likewise. 5 (VPATH): Use $(srcdir) instead of @srcdir@.
6 6
72010-03-20 Stefan Monnier <monnier@iro.umontreal.ca> 72010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8 8
diff --git a/src/Makefile.in b/src/Makefile.in
index 6b502f39207..d8661bc0be6 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -33,16 +33,17 @@
33 33
34# Here are the things that we expect ../configure to edit. 34# Here are the things that we expect ../configure to edit.
35# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. 35# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
36srcdir=@srcdir@ 36srcdir = @srcdir@
37VPATH=@srcdir@ 37abs_builddir = @abs_builddir@
38CC=@CC@ 38VPATH = $(srcdir)
39CPP=@CPP@ 39CC = @CC@
40CFLAGS=@CFLAGS@ 40CPP = @CPP@
41CPPFLAGS=@CPPFLAGS@ 41CFLAGS = @CFLAGS@
42LDFLAGS=@LDFLAGS@ 42CPPFLAGS = @CPPFLAGS@
43LN_S=@LN_S@ 43LDFLAGS = @LDFLAGS@
44EXEEXT=@EXEEXT@ 44LN_S = @LN_S@
45version=@version@ 45EXEEXT = @EXEEXT@
46version = @version@
46# Substitute an assignment for the MAKE variable, because 47# Substitute an assignment for the MAKE variable, because
47# BSD doesn't have it as a default. 48# BSD doesn't have it as a default.
48@SET_MAKE@ 49@SET_MAKE@
@@ -63,7 +64,7 @@ M_FILE = ${srcdir}/@machfile@
63S_FILE = ${srcdir}/@opsysfile@ 64S_FILE = ${srcdir}/@opsysfile@
64config_h = config.h $(M_FILE) $(S_FILE) 65config_h = config.h $(M_FILE) $(S_FILE)
65 66
66bootstrap_exe = `pwd`/bootstrap-emacs${EXEEXT} 67bootstrap_exe = ${abs_builddir}/bootstrap-emacs${EXEEXT}
67 68
68OTHER_FILES = @OTHER_FILES@ 69OTHER_FILES = @OTHER_FILES@
69 70
@@ -1332,15 +1333,14 @@ tags: TAGS TAGS-LISP $(lwlibdir)TAGS
1332 separately below. 1333 separately below.
1333 With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)" */ 1334 With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)" */
1334.el.elc: 1335.el.elc:
1335 @EMACS=${bootstrap_exe}; \ 1336 @cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile \
1336 cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile THEFILE=$< EMACS=$$EMACS 1337 THEFILE=$< EMACS=${bootstrap_exe}
1337 1338
1338/* Since the .el.elc rule cannot specify an extra dependency, we do it here. */ 1339/* Since the .el.elc rule cannot specify an extra dependency, we do it here. */
1339${lisp} ${SOME_MACHINE_LISP}: $(BOOTSTRAPEMACS) 1340${lisp} ${SOME_MACHINE_LISP}: $(BOOTSTRAPEMACS)
1340 1341
1341${lispsource}loaddefs.el: $(BOOTSTRAPEMACS) 1342${lispsource}loaddefs.el: $(BOOTSTRAPEMACS)
1342 EMACS=${bootstrap_exe}; \ 1343 cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS=${bootstrap_exe}
1343 cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS=$$EMACS
1344 1344
1345/* Dump an Emacs executable named bootstrap-emacs containing the 1345/* Dump an Emacs executable named bootstrap-emacs containing the
1346 files from loadup.el in source form. */ 1346 files from loadup.el in source form. */
@@ -1354,8 +1354,7 @@ bootstrap-emacs${EXEEXT}: temacs${EXEEXT}
1354 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT} 1354 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
1355#endif /* ! defined (CANNOT_DUMP) */ 1355#endif /* ! defined (CANNOT_DUMP) */
1356 @: Compile some files earlier to speed up further compilation. 1356 @: Compile some files earlier to speed up further compilation.
1357 EMACS=${bootstrap_exe}; \ 1357 cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe}
1358 cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=$$EMACS
1359 1358
1360#ifdef AUTO_DEPEND 1359#ifdef AUTO_DEPEND
1361ALLOBJS=$(STARTFILES) ${obj} ${otherobj} prefix-args.o 1360ALLOBJS=$(STARTFILES) ${obj} ${otherobj} prefix-args.o