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 /lisp | |
| 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 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/Makefile.in | 35 |
2 files changed, 26 insertions, 20 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; \ |