diff options
| author | Andreas Schwab | 2010-03-21 12:57:49 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2010-03-21 12:57:49 +0100 |
| commit | 82c3d67afb365ecba2c3823beecc25606a8e9d70 (patch) | |
| tree | 10350f129b077caf0dd1170b446fc43e488f4fd6 /src | |
| parent | c0282183ba4a5b62292627a51726426479bf4272 (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | src/Makefile.in | 33 |
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 @@ | |||
| 1 | 2010-03-21 Andreas Schwab <schwab@linux-m68k.org> | 1 | 2010-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 | ||
| 7 | 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2010-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. |
| 36 | srcdir=@srcdir@ | 36 | srcdir = @srcdir@ |
| 37 | VPATH=@srcdir@ | 37 | abs_builddir = @abs_builddir@ |
| 38 | CC=@CC@ | 38 | VPATH = $(srcdir) |
| 39 | CPP=@CPP@ | 39 | CC = @CC@ |
| 40 | CFLAGS=@CFLAGS@ | 40 | CPP = @CPP@ |
| 41 | CPPFLAGS=@CPPFLAGS@ | 41 | CFLAGS = @CFLAGS@ |
| 42 | LDFLAGS=@LDFLAGS@ | 42 | CPPFLAGS = @CPPFLAGS@ |
| 43 | LN_S=@LN_S@ | 43 | LDFLAGS = @LDFLAGS@ |
| 44 | EXEEXT=@EXEEXT@ | 44 | LN_S = @LN_S@ |
| 45 | version=@version@ | 45 | EXEEXT = @EXEEXT@ |
| 46 | version = @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@ | |||
| 63 | S_FILE = ${srcdir}/@opsysfile@ | 64 | S_FILE = ${srcdir}/@opsysfile@ |
| 64 | config_h = config.h $(M_FILE) $(S_FILE) | 65 | config_h = config.h $(M_FILE) $(S_FILE) |
| 65 | 66 | ||
| 66 | bootstrap_exe = `pwd`/bootstrap-emacs${EXEEXT} | 67 | bootstrap_exe = ${abs_builddir}/bootstrap-emacs${EXEEXT} |
| 67 | 68 | ||
| 68 | OTHER_FILES = @OTHER_FILES@ | 69 | OTHER_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 |
| 1361 | ALLOBJS=$(STARTFILES) ${obj} ${otherobj} prefix-args.o | 1360 | ALLOBJS=$(STARTFILES) ${obj} ${otherobj} prefix-args.o |