aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-11-02 13:05:15 -0700
committerGlenn Morris2013-11-02 13:05:15 -0700
commit18ba6a334d9fabe753f657008fe0084798b77673 (patch)
tree1f9ae4c74fd5fb888f32d640d092f047c6245448
parent1f43ed41773a6bcdc7fc9437d73b801a2c62396e (diff)
downloademacs-18ba6a334d9fabe753f657008fe0084798b77673.tar.gz
emacs-18ba6a334d9fabe753f657008fe0084798b77673.zip
* lisp/Makefile.in (EMACS): Use a relative filename.
(custom-deps, finder-data, autoloads): Use --chdir.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/Makefile.in21
2 files changed, 14 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c175aa8830..b8918725c10 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-11-02 Glenn Morris <rgm@gnu.org> 12013-11-02 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (EMACS): Use a relative filename.
4 (custom-deps, finder-data, autoloads): Use --chdir.
5
3 * Makefile.in (abs_lisp): Remove, replace by abs_srcdir. 6 * Makefile.in (abs_lisp): Remove, replace by abs_srcdir.
4 7
5 Use relative filenames in TAGS files. 8 Use relative filenames in TAGS files.
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index b1fd6b93ff5..1ac6338bcd1 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -33,10 +33,10 @@ XARGS_LIMIT = @XARGS_LIMIT@
33# You can specify a different executable on the make command line, 33# You can specify a different executable on the make command line,
34# e.g. "make EMACS=../src/emacs ...". 34# e.g. "make EMACS=../src/emacs ...".
35 35
36# We sometimes change directory before running Emacs (typically when 36# We never change directory before running Emacs, so a relative file
37# building out-of-tree, we chdir to the source directory), so we need 37# name is fine, and makes life easier. If we need to change
38# to use an absolute file name. 38# directory, we can use emacs --chdir.
39EMACS = ${abs_top_builddir}/src/emacs 39EMACS = ../src/emacs
40 40
41# Command line flags for Emacs. 41# Command line flags for Emacs.
42 42
@@ -159,25 +159,26 @@ doit:
159$(lisp)/cus-load.el: 159$(lisp)/cus-load.el:
160 $(MAKE) $(MFLAGS) custom-deps 160 $(MAKE) $(MFLAGS) custom-deps
161custom-deps: doit 161custom-deps: doit
162 cd $(lisp) && $(setwins_almost); \ 162 thisdir=`pwd`; cd $(lisp) && $(setwins_almost); cd "$$thisdir"; \
163 echo Directories: $$wins; \ 163 echo Directories: $$wins; \
164 $(emacs) -l cus-dep -f custom-make-dependencies $$wins 164 $(emacs) --chdir $(lisp) -l cus-dep -f custom-make-dependencies $$wins
165 165
166$(lisp)/finder-inf.el: 166$(lisp)/finder-inf.el:
167 $(MAKE) $(MFLAGS) finder-data 167 $(MAKE) $(MFLAGS) finder-data
168finder-data: doit 168finder-data: doit
169 cd $(lisp) && $(setwins_almost); \ 169 thisdir=`pwd`; cd $(lisp) && $(setwins_almost); cd "$$thisdir"; \
170 echo Directories: $$wins; \ 170 echo Directories: $$wins; \
171 $(emacs) -l finder -f finder-compile-keywords-make-dist $$wins 171 $(emacs) --chdir $(lisp) -l finder \
172 -f finder-compile-keywords-make-dist $$wins
172 173
173# The chmod +w is to handle env var CVSREAD=1. 174# The chmod +w is to handle env var CVSREAD=1.
174# Use expand-file-name rather than $abs_scrdir so that Emacs does not 175# Use expand-file-name rather than $abs_scrdir so that Emacs does not
175# get confused when it compares file-names for equality. 176# get confused when it compares file-names for equality.
176autoloads: $(LOADDEFS) doit 177autoloads: $(LOADDEFS) doit
177 cd $(lisp) && chmod +w $(AUTOGEN_VCS) 178 cd $(lisp) && chmod +w $(AUTOGEN_VCS)
178 cd $(lisp) && $(setwins_almost); \ 179 thisdir=`pwd`; cd $(lisp) && $(setwins_almost); cd "$$thisdir"; \
179 echo Directories: $$wins; \ 180 echo Directories: $$wins; \
180 $(emacs) -l autoload \ 181 $(emacs) --chdir $(lisp) -l autoload \
181 --eval '(setq autoload-builtin-package-versions t)' \ 182 --eval '(setq autoload-builtin-package-versions t)' \
182 --eval '(setq generated-autoload-file (expand-file-name "loaddefs.el"))' \ 183 --eval '(setq generated-autoload-file (expand-file-name "loaddefs.el"))' \
183 -f batch-update-autoloads $$wins 184 -f batch-update-autoloads $$wins