aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-10-29 23:21:46 -0700
committerGlenn Morris2013-10-29 23:21:46 -0700
commit74cf04fb1b3a8d3a529f98c6bc094068960ee1b2 (patch)
treece06ab7fb4bf66869194c76717070db0533f9b53
parentae4002ce294f21a82979edacef39f82d8e4cd1cc (diff)
downloademacs-74cf04fb1b3a8d3a529f98c6bc094068960ee1b2.tar.gz
emacs-74cf04fb1b3a8d3a529f98c6bc094068960ee1b2.zip
lisp/Makefile.in trivia
* lisp/Makefile.in (finder-data, autoloads, update-subdirs) (compile-main, compile-clean, compile-always, bootstrap-clean): Check return value of cd. (compile-calc): Remove.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/Makefile.in24
2 files changed, 16 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a0cf681dcea..bb720ee9242 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12013-10-30 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (finder-data, autoloads, update-subdirs)
4 (compile-main, compile-clean, compile-always, bootstrap-clean):
5 Check return value of cd.
6 (compile-calc): Remove.
7
12013-10-30 Stefan Monnier <monnier@iro.umontreal.ca> 82013-10-30 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * simple.el (copy-region-as-kill): Fix call to region-extract-function. 10 * simple.el (copy-region-as-kill): Fix call to region-extract-function.
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 3126e68c3a0..9b5d47c5ed7 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -165,21 +165,21 @@ doit:
165$(lisp)/cus-load.el: 165$(lisp)/cus-load.el:
166 $(MAKE) $(MFLAGS) custom-deps 166 $(MAKE) $(MFLAGS) custom-deps
167custom-deps: doit 167custom-deps: doit
168 cd $(lisp); $(setwins_almost); \ 168 cd $(lisp) && $(setwins_almost); \
169 echo Directories: $$wins; \ 169 echo Directories: $$wins; \
170 $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file (unmsys--file-name "$(abs_lisp)/cus-load.el"))' -f custom-make-dependencies $$wins 170 $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file (unmsys--file-name "$(abs_lisp)/cus-load.el"))' -f custom-make-dependencies $$wins
171 171
172$(lisp)/finder-inf.el: 172$(lisp)/finder-inf.el:
173 $(MAKE) $(MFLAGS) finder-data 173 $(MAKE) $(MFLAGS) finder-data
174finder-data: doit 174finder-data: doit
175 cd $(lisp); $(setwins_almost); \ 175 cd $(lisp) && $(setwins_almost); \
176 echo Directories: $$wins; \ 176 echo Directories: $$wins; \
177 $(emacs) -l finder --eval '(setq generated-finder-keywords-file (unmsys--file-name "$(abs_lisp)/finder-inf.el"))' -f finder-compile-keywords-make-dist $$wins 177 $(emacs) -l finder --eval '(setq generated-finder-keywords-file (unmsys--file-name "$(abs_lisp)/finder-inf.el"))' -f finder-compile-keywords-make-dist $$wins
178 178
179# The chmod +w is to handle env var CVSREAD=1. 179# The chmod +w is to handle env var CVSREAD=1.
180autoloads: $(LOADDEFS) doit 180autoloads: $(LOADDEFS) doit
181 cd $(lisp) && chmod +w $(AUTOGEN_VCS) 181 cd $(lisp) && chmod +w $(AUTOGEN_VCS)
182 cd $(lisp); $(setwins_almost); \ 182 cd $(lisp) && $(setwins_almost); \
183 echo Directories: $$wins; \ 183 echo Directories: $$wins; \
184 $(emacs) -l autoload \ 184 $(emacs) -l autoload \
185 --eval '(setq autoload-builtin-package-versions t)' \ 185 --eval '(setq autoload-builtin-package-versions t)' \
@@ -191,7 +191,7 @@ autoloads: $(LOADDEFS) doit
191$(lisp)/subdirs.el: 191$(lisp)/subdirs.el:
192 $(MAKE) $(MFLAGS) update-subdirs 192 $(MAKE) $(MFLAGS) update-subdirs
193update-subdirs: doit 193update-subdirs: doit
194 cd $(lisp); $(setwins_for_subdirs); \ 194 cd $(lisp) && $(setwins_for_subdirs); \
195 for file in $$wins; do \ 195 for file in $$wins; do \
196 ../build-aux/update-subdirs $$file; \ 196 ../build-aux/update-subdirs $$file; \
197 done; 197 done;
@@ -279,7 +279,7 @@ compile-targets: $(TARGETS)
279# Compile all the Elisp files that need it. Beware: it approximates 279# Compile all the Elisp files that need it. Beware: it approximates
280# `no-byte-compile', so watch out for false-positives! 280# `no-byte-compile', so watch out for false-positives!
281compile-main: compile-clean 281compile-main: compile-clean
282 @(cd $(lisp); $(setwins); \ 282 @(cd $(lisp) && $(setwins); \
283 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ 283 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
284 for el in $$els; do \ 284 for el in $$els; do \
285 test -f $$el || continue; \ 285 test -f $$el || continue; \
@@ -293,7 +293,7 @@ compile-main: compile-clean
293.PHONY: compile-clean 293.PHONY: compile-clean
294# Erase left-over .elc files that do not have a corresponding .el file. 294# Erase left-over .elc files that do not have a corresponding .el file.
295compile-clean: 295compile-clean:
296 @cd $(lisp); $(setwins); \ 296 @cd $(lisp) && $(setwins); \
297 elcs=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.elc |g'`; \ 297 elcs=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.elc |g'`; \
298 for el in `echo $$elcs | sed -e 's/\.elc/\.el/g'`; do \ 298 for el in `echo $$elcs | sed -e 's/\.elc/\.el/g'`; do \
299 if test -f "$$el" -o \! -f "$${el}c"; then :; else \ 299 if test -f "$$el" -o \! -f "$${el}c"; then :; else \
@@ -315,16 +315,10 @@ compile: $(LOADDEFS) autoloads compile-first
315# unconditionally. Some files don't actually get compiled because they 315# unconditionally. Some files don't actually get compiled because they
316# set the local variable no-byte-compile. 316# set the local variable no-byte-compile.
317compile-always: doit 317compile-always: doit
318 cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc 318 cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc
319 $(MAKE) $(MFLAGS) compile EMACS="$(EMACS)" 319 $(MAKE) $(MFLAGS) compile EMACS="$(EMACS)"
320 320
321.PHONY: compile-calc backup-compiled-files compile-after-backup 321.PHONY: backup-compiled-files compile-after-backup
322
323compile-calc:
324 for el in $(lisp)/calc/*.el; do \
325 echo Compiling $$el; \
326 $(emacs) $(BYTE_COMPILE_FLAGS) -f batch-byte-compile $$el || exit 1;\
327 done
328 322
329# Backup compiled Lisp files in elc.tar.gz. If that file already 323# Backup compiled Lisp files in elc.tar.gz. If that file already
330# exists, make a backup of it. 324# exists, make a backup of it.
@@ -441,7 +435,7 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC)
441.PHONY: bootstrap-clean distclean maintainer-clean 435.PHONY: bootstrap-clean distclean maintainer-clean
442 436
443bootstrap-clean: 437bootstrap-clean:
444 cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc $(AUTOGENEL) 438 -cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc $(AUTOGENEL)
445 439
446distclean: 440distclean:
447 -rm -f ./Makefile $(lisp)/loaddefs.el~ 441 -rm -f ./Makefile $(lisp)/loaddefs.el~