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 | |
| 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@.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/Makefile.in | 35 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/Makefile.in | 33 |
4 files changed, 45 insertions, 40 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 06e80db356d..de399c39bd9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2010-03-21 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * Makefile.in (top_srcdir): Define. | ||
| 4 | (abs_top_builddir): Define. | ||
| 5 | (srcdir): Don't append `/..'. | ||
| 6 | (EMACS): Use ${abs_top_builddir}. | ||
| 7 | (all, compile, compile-always, compile-last): Don't set emacswd. | ||
| 8 | (update-subdirs, update-authors): Use $(top_srcdir) instead of | ||
| 9 | $(srcdir). | ||
| 10 | (lisp): Use $(srcdir) instead of @srcdir@. | ||
| 11 | |||
| 1 | 2010-03-21 Juri Linkov <juri@jurta.org> | 12 | 2010-03-21 Juri Linkov <juri@jurta.org> |
| 2 | 13 | ||
| 3 | Fix message of multi-line occur regexps and multi-buffer header lines. | 14 | Fix message of multi-line occur regexps and multi-buffer header lines. |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 06d9684f60a..a08e7e9e47b 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -19,22 +19,19 @@ | |||
| 19 | 19 | ||
| 20 | SHELL = /bin/sh | 20 | SHELL = /bin/sh |
| 21 | 21 | ||
| 22 | lisp=@srcdir@ | 22 | srcdir = @srcdir@ |
| 23 | VPATH=@srcdir@ | 23 | top_srcdir = @top_srcdir@ |
| 24 | srcdir=@srcdir@/.. | 24 | abs_top_builddir = @abs_top_builddir@ |
| 25 | lisp = $(srcdir) | ||
| 26 | VPATH = $(srcdir) | ||
| 25 | 27 | ||
| 26 | # You can specify a different executable on the make command line, | 28 | # You can specify a different executable on the make command line, |
| 27 | # e.g. "make EMACS=../src/emacs ...". | 29 | # e.g. "make EMACS=../src/emacs ...". |
| 28 | 30 | ||
| 29 | # We sometimes change directory before running Emacs (typically when | 31 | # We sometimes change directory before running Emacs (typically when |
| 30 | # building out-of-tree, we chdir to the source directory), so we need | 32 | # building out-of-tree, we chdir to the source directory), so we need |
| 31 | # to use an aboluste file name. But there's no standard way | 33 | # to use an aboluste file name. |
| 32 | # in a makefile to get the pwd, so we simply rely on a shell | 34 | EMACS = ${abs_top_builddir}/src/emacs |
| 33 | # "$emacswd" var that needs to be set wherever we use $(EMACS) (or | ||
| 34 | # $(emacs)). Yet, it is setup in such a way that if you forget to set | ||
| 35 | # $emacswd, it will still work, so long as you did not | ||
| 36 | # change directory. | ||
| 37 | EMACS = $$emacswd../src/emacs | ||
| 38 | 35 | ||
| 39 | # Command line flags for Emacs. This must include --multibyte, | 36 | # Command line flags for Emacs. This must include --multibyte, |
| 40 | # otherwise some files will not compile. | 37 | # otherwise some files will not compile. |
| @@ -119,7 +116,7 @@ setwins_for_subdirs=subdirs=`(find . -type d -print)`; \ | |||
| 119 | # we add them here to make sure they get built. | 116 | # we add them here to make sure they get built. |
| 120 | all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el | 117 | all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el |
| 121 | @: Let us check that we byte-compiled all the files. | 118 | @: Let us check that we byte-compiled all the files. |
| 122 | emacswd=`pwd`/; $(MAKE) $(MFLAGS) compile-last EMACS=$(EMACS) | 119 | $(MAKE) $(MFLAGS) compile-last EMACS=$(EMACS) |
| 123 | 120 | ||
| 124 | doit: | 121 | doit: |
| 125 | 122 | ||
| @@ -140,14 +137,14 @@ doit: | |||
| 140 | $(lisp)/cus-load.el: | 137 | $(lisp)/cus-load.el: |
| 141 | $(MAKE) $(MFLAGS) custom-deps | 138 | $(MAKE) $(MFLAGS) custom-deps |
| 142 | custom-deps: doit | 139 | custom-deps: doit |
| 143 | emacswd=`pwd`/; cd $(lisp); $(setwins_almost); \ | 140 | cd $(lisp); $(setwins_almost); \ |
| 144 | echo Directories: $$wins; \ | 141 | echo Directories: $$wins; \ |
| 145 | $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file "$(lisp)/cus-load.el")' -f custom-make-dependencies $$wins | 142 | $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file "$(lisp)/cus-load.el")' -f custom-make-dependencies $$wins |
| 146 | 143 | ||
| 147 | $(lisp)/finder-inf.el: | 144 | $(lisp)/finder-inf.el: |
| 148 | $(MAKE) $(MFLAGS) finder-data | 145 | $(MAKE) $(MFLAGS) finder-data |
| 149 | finder-data: doit | 146 | finder-data: doit |
| 150 | emacswd=`pwd`/; cd $(lisp); $(setwins_almost); \ | 147 | cd $(lisp); $(setwins_almost); \ |
| 151 | echo Directories: $$wins; \ | 148 | echo Directories: $$wins; \ |
| 152 | $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins | 149 | $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins |
| 153 | 150 | ||
| @@ -157,7 +154,7 @@ autoloads: $(LOADDEFS) doit | |||
| 157 | chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \ | 154 | chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \ |
| 158 | $(lisp)/emacs-lisp/cl-loaddefs.el $(lisp)/mail/rmail.el \ | 155 | $(lisp)/emacs-lisp/cl-loaddefs.el $(lisp)/mail/rmail.el \ |
| 159 | $(lisp)/dired.el $(lisp)/ibuffer.el | 156 | $(lisp)/dired.el $(lisp)/ibuffer.el |
| 160 | emacswd=`pwd`/; cd $(lisp); $(setwins_almost); \ | 157 | cd $(lisp); $(setwins_almost); \ |
| 161 | echo Directories: $$wins; \ | 158 | echo Directories: $$wins; \ |
| 162 | $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins | 159 | $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
| 163 | 160 | ||
| @@ -168,7 +165,7 @@ $(lisp)/subdirs.el: | |||
| 168 | update-subdirs: doit | 165 | update-subdirs: doit |
| 169 | cd $(lisp); $(setwins_for_subdirs); \ | 166 | cd $(lisp); $(setwins_for_subdirs); \ |
| 170 | for file in $$wins; do \ | 167 | for file in $$wins; do \ |
| 171 | $(srcdir)/update-subdirs $$file; \ | 168 | $(top_srcdir)/update-subdirs $$file; \ |
| 172 | done; | 169 | done; |
| 173 | 170 | ||
| 174 | updates: update-subdirs autoloads finder-data custom-deps | 171 | updates: update-subdirs autoloads finder-data custom-deps |
| @@ -182,7 +179,7 @@ cvs-update: bzr-update | |||
| 182 | # Update the AUTHORS file. | 179 | # Update the AUTHORS file. |
| 183 | 180 | ||
| 184 | update-authors: | 181 | update-authors: |
| 185 | $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir) | 182 | $(emacs) -l authors -f batch-update-authors $(top_srcdir)/etc/AUTHORS $(top_srcdir) |
| 186 | 183 | ||
| 187 | TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | 184 | TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) |
| 188 | els=`echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | sed -e "s,$(lisp)/[^ ]*loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ | 185 | els=`echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | sed -e "s,$(lisp)/[^ ]*loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ |
| @@ -1513,8 +1510,7 @@ compile-main: $(ELCFILES) | |||
| 1513 | # Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those | 1510 | # Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those |
| 1514 | # sub-makes that run rules that use it, for the sake of some non-GNU makes. | 1511 | # sub-makes that run rules that use it, for the sake of some non-GNU makes. |
| 1515 | compile: $(LOADDEFS) autoloads compile-first | 1512 | compile: $(LOADDEFS) autoloads compile-first |
| 1516 | emacswd=`pwd`/; \ | 1513 | $(MAKE) $(MFLAGS) compile-main EMACS=$(EMACS) |
| 1517 | $(MAKE) $(MFLAGS) compile-main EMACS=$(EMACS); \ | ||
| 1518 | $(MAKE) $(MFLAGS) compile-last EMACS=$(EMACS) | 1514 | $(MAKE) $(MFLAGS) compile-last EMACS=$(EMACS) |
| 1519 | 1515 | ||
| 1520 | ## Doing this causes make install to dump another emacs. | 1516 | ## Doing this causes make install to dump another emacs. |
| @@ -1525,12 +1521,11 @@ compile: $(LOADDEFS) autoloads compile-first | |||
| 1525 | # set the local variable no-byte-compile. | 1521 | # set the local variable no-byte-compile. |
| 1526 | compile-always: doit | 1522 | compile-always: doit |
| 1527 | cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc | 1523 | cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc |
| 1528 | emacswd=`pwd`/; \ | ||
| 1529 | $(MAKE) $(MFLAGS) compile EMACS=$(EMACS) | 1524 | $(MAKE) $(MFLAGS) compile EMACS=$(EMACS) |
| 1530 | 1525 | ||
| 1531 | ## In case any files are missing from ELCFILES. | 1526 | ## In case any files are missing from ELCFILES. |
| 1532 | compile-last: | 1527 | compile-last: |
| 1533 | @emacswd=`pwd`/; cd $(lisp); $(setwins); \ | 1528 | @cd $(lisp); $(setwins); \ |
| 1534 | els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ | 1529 | els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ |
| 1535 | for el in $$els; do \ | 1530 | for el in $$els; do \ |
| 1536 | test -f $$el || continue; \ | 1531 | test -f $$el || continue; \ |
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 |