Mercurial > emacs
comparison lisp/Makefile.in @ 94241:db4c1b0641f4
(emacs-deps): Define. Use it instead of
$(lisp)/subdirs.el.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Tue, 22 Apr 2008 09:34:02 +0000 |
parents | fc1c6238cdc6 |
children | c4b844d3df2c |
comparison
equal
deleted
inserted
replaced
94240:9f1f284d17b3 | 94241:db4c1b0641f4 |
---|---|
78 $(lisp)/progmodes/cc-vars.el | 78 $(lisp)/progmodes/cc-vars.el |
79 | 79 |
80 # The actual Emacs command run in the targets below. | 80 # The actual Emacs command run in the targets below. |
81 | 81 |
82 emacs = EMACSLOADPATH=$(lisp) LC_ALL=C $(EMACS) $(EMACSOPT) | 82 emacs = EMACSLOADPATH=$(lisp) LC_ALL=C $(EMACS) $(EMACSOPT) |
83 # Prerequisites for running $(emacs) | |
84 emacs-deps = $(lisp)/subdirs.el | |
83 | 85 |
84 # Common command to find subdirectories | 86 # Common command to find subdirectories |
85 | 87 |
86 setwins=subdirs=`(cd $$wd; find . -type d -print)`; \ | 88 setwins=subdirs=`(cd $$wd; find . -type d -print)`; \ |
87 for file in $$subdirs; do \ | 89 for file in $$subdirs; do \ |
105 touch $@ | 107 touch $@ |
106 # Note that custom-deps and finder-data depend on autoloads rather | 108 # Note that custom-deps and finder-data depend on autoloads rather |
107 # than on loaddefs.el, so that autoloads does not run in parallel with | 109 # than on loaddefs.el, so that autoloads does not run in parallel with |
108 # them under "make -j", because that could delete loaddefs.el from | 110 # them under "make -j", because that could delete loaddefs.el from |
109 # under their feet. | 111 # under their feet. |
110 custom-deps: $(lisp)/subdirs.el autoloads $(lisp)/cus-load.el doit | 112 custom-deps: $(emacs-deps) autoloads $(lisp)/cus-load.el doit |
111 wd=$(lisp); $(setwins_almost); \ | 113 wd=$(lisp); $(setwins_almost); \ |
112 echo Directories: $$wins; \ | 114 echo Directories: $$wins; \ |
113 $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file "$(lisp)/cus-load.el")' -f custom-make-dependencies $$wins | 115 $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file "$(lisp)/cus-load.el")' -f custom-make-dependencies $$wins |
114 | 116 |
115 finder-data: $(lisp)/subdirs.el autoloads doit | 117 finder-data: $(emacs-deps) autoloads doit |
116 wd=$(lisp); $(setwins_almost); \ | 118 wd=$(lisp); $(setwins_almost); \ |
117 echo Directories: $$wins; \ | 119 echo Directories: $$wins; \ |
118 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins | 120 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins |
119 | 121 |
120 autoloads: $(lisp)/subdirs.el $(LOADDEFS) doit | 122 autoloads: $(emacs-deps) $(LOADDEFS) doit |
121 wd=$(lisp); $(setwins_almost); \ | 123 wd=$(lisp); $(setwins_almost); \ |
122 echo Directories: $$wins; \ | 124 echo Directories: $$wins; \ |
123 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins | 125 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
124 | 126 |
125 # Note: every rule that runs $(emacs) and is called during bootstrap must | 127 # Note: every rule that runs $(emacs) and is called during bootstrap must |
150 els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ | 152 els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ |
151 ${ETAGS} -o TAGS-LISP $$els | 153 ${ETAGS} -o TAGS-LISP $$els |
152 | 154 |
153 .SUFFIXES: .elc .el | 155 .SUFFIXES: .elc .el |
154 | 156 |
155 .el.elc: $(lisp)/subdirs.el | 157 .el.elc: $(emacs-deps) |
156 -$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< | 158 -$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $< |
157 | 159 |
158 # Compile all Lisp files, but don't recompile those that are up to | 160 # Compile all Lisp files, but don't recompile those that are up to |
159 # date. Some files don't actually get compiled because they set the | 161 # date. Some files don't actually get compiled because they set the |
160 # local variable no-byte-compile. | 162 # local variable no-byte-compile. |
167 # subdirectories, to make sure require's and load's in the files being | 169 # subdirectories, to make sure require's and load's in the files being |
168 # compiled find the right files. | 170 # compiled find the right files. |
169 | 171 |
170 # `|| true' below prevents old Bash versions from getting confused | 172 # `|| true' below prevents old Bash versions from getting confused |
171 # by an error. | 173 # by an error. |
172 compile: $(lisp)/subdirs.el $(LOADDEFS) doit | 174 compile: $(emacs-deps) $(LOADDEFS) doit |
173 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ | 175 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ |
174 wd=$(lisp); $(setwins); \ | 176 wd=$(lisp); $(setwins); \ |
175 els=`echo $$wins | tr ' \011' '\012\012' | \ | 177 els=`echo $$wins | tr ' \011' '\012\012' | \ |
176 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ | 178 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
177 for el in $(COMPILE_FIRST) $$els; do \ | 179 for el in $(COMPILE_FIRST) $$els; do \ |
184 | 186 |
185 # Compile all Lisp files. This is like `compile' but compiles files | 187 # Compile all Lisp files. This is like `compile' but compiles files |
186 # unconditionally. Some files don't actually get compiled because they | 188 # unconditionally. Some files don't actually get compiled because they |
187 # set the local variable no-byte-compile. | 189 # set the local variable no-byte-compile. |
188 | 190 |
189 compile-always: $(lisp)/subdirs.el $(LOADDEFS) doit | 191 compile-always: $(emacs-deps) $(LOADDEFS) doit |
190 # `|| true' prevents old Bash versions from getting confused | 192 # `|| true' prevents old Bash versions from getting confused |
191 # by an error. | 193 # by an error. |
192 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ | 194 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ |
193 wd=$(lisp); $(setwins); \ | 195 wd=$(lisp); $(setwins); \ |
194 els=`echo $$wins | tr ' \011' '\012\012' | \ | 196 els=`echo $$wins | tr ' \011' '\012\012' | \ |
250 $(MH_E_DIR)/mh-speed.el $(MH_E_DIR)/mh-thread.el \ | 252 $(MH_E_DIR)/mh-speed.el $(MH_E_DIR)/mh-thread.el \ |
251 $(MH_E_DIR)/mh-tool-bar.el $(MH_E_DIR)/mh-utils.el \ | 253 $(MH_E_DIR)/mh-tool-bar.el $(MH_E_DIR)/mh-utils.el \ |
252 $(MH_E_DIR)/mh-xface.el | 254 $(MH_E_DIR)/mh-xface.el |
253 | 255 |
254 mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el | 256 mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el |
255 $(MH_E_DIR)/mh-loaddefs.el: $(lisp)/subdirs.el $(MH_E_SRC) | 257 $(MH_E_DIR)/mh-loaddefs.el: $(emacs-deps) $(MH_E_SRC) |
256 $(emacs) -l autoload \ | 258 $(emacs) -l autoload \ |
257 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ | 259 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ |
258 --eval "(setq generated-autoload-file \"$@\")" \ | 260 --eval "(setq generated-autoload-file \"$@\")" \ |
259 --eval "(setq make-backup-files nil)" \ | 261 --eval "(setq make-backup-files nil)" \ |
260 -f batch-update-autoloads $(MH_E_DIR) | 262 -f batch-update-autoloads $(MH_E_DIR) |
272 $(CAL_DIR)/cal-tex.el $(CAL_DIR)/cal-x.el \ | 274 $(CAL_DIR)/cal-tex.el $(CAL_DIR)/cal-x.el \ |
273 $(CAL_DIR)/calendar.el $(CAL_DIR)/diary-lib.el \ | 275 $(CAL_DIR)/calendar.el $(CAL_DIR)/diary-lib.el \ |
274 $(CAL_DIR)/holidays.el $(CAL_DIR)/lunar.el \ | 276 $(CAL_DIR)/holidays.el $(CAL_DIR)/lunar.el \ |
275 $(CAL_DIR)/solar.el | 277 $(CAL_DIR)/solar.el |
276 | 278 |
277 $(CAL_DIR)/cal-loaddefs.el: $(lisp)/subdirs.el $(CAL_SRC) | 279 $(CAL_DIR)/cal-loaddefs.el: $(emacs-deps) $(CAL_SRC) |
278 $(emacs) -l autoload \ | 280 $(emacs) -l autoload \ |
279 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ | 281 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ |
280 --eval "(setq generated-autoload-file \"$@\")" \ | 282 --eval "(setq generated-autoload-file \"$@\")" \ |
281 --eval "(setq make-backup-files nil)" \ | 283 --eval "(setq make-backup-files nil)" \ |
282 -f batch-update-autoloads $(CAL_DIR) | 284 -f batch-update-autoloads $(CAL_DIR) |
283 | 285 |
284 $(CAL_DIR)/diary-loaddefs.el: $(lisp)/subdirs.el $(CAL_SRC) | 286 $(CAL_DIR)/diary-loaddefs.el: $(emacs-deps) $(CAL_SRC) |
285 $(emacs) -l autoload \ | 287 $(emacs) -l autoload \ |
286 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \ | 288 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \ |
287 --eval "(setq generated-autoload-file \"$@\")" \ | 289 --eval "(setq generated-autoload-file \"$@\")" \ |
288 --eval "(setq make-backup-files nil)" \ | 290 --eval "(setq make-backup-files nil)" \ |
289 -f batch-update-autoloads $(CAL_DIR) | 291 -f batch-update-autoloads $(CAL_DIR) |
290 | 292 |
291 $(CAL_DIR)/hol-loaddefs.el: $(lisp)/subdirs.el $(CAL_SRC) | 293 $(CAL_DIR)/hol-loaddefs.el: $(emacs-deps) $(CAL_SRC) |
292 $(emacs) -l autoload \ | 294 $(emacs) -l autoload \ |
293 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \ | 295 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \ |
294 --eval "(setq generated-autoload-file \"$@\")" \ | 296 --eval "(setq generated-autoload-file \"$@\")" \ |
295 --eval "(setq make-backup-files nil)" \ | 297 --eval "(setq make-backup-files nil)" \ |
296 -f batch-update-autoloads $(CAL_DIR) | 298 -f batch-update-autoloads $(CAL_DIR) |