125 |
|
|
126 |
# The actual Emacs command run in the targets below. |
# The actual Emacs command run in the targets below. |
127 |
|
|
128 |
emacs = EMACSLOADPATH=$(lisp) $(EMACS) $(EMACSOPT) |
emacs = EMACSLOADPATH=$(lisp) LANG=C $(EMACS) $(EMACSOPT) |
129 |
|
|
130 |
# Common command to find subdirectories |
# Common command to find subdirectories |
131 |
|
|
150 |
custom-deps: cus-load.el doit |
custom-deps: cus-load.el doit |
151 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
152 |
echo Directories: $$wins; \ |
echo Directories: $$wins; \ |
153 |
$(EMACS) $(EMACSOPT) -l cus-dep -f custom-make-dependencies $$wins |
LANG=C $(EMACS) $(EMACSOPT) -l cus-dep -f custom-make-dependencies $$wins |
154 |
|
|
155 |
finder-inf.el: |
finder-inf.el: |
156 |
echo "(provide 'finder-inf)" >> $@ |
echo "(provide 'finder-inf)" >> $@ |
157 |
finder-data: finder-inf.el doit |
finder-data: finder-inf.el doit |
158 |
wd=$(lisp); $(finder_setwins); \ |
wd=$(lisp); $(finder_setwins); \ |
159 |
echo Directories: $$wins; \ |
echo Directories: $$wins; \ |
160 |
$(EMACS) $(EMACSOPT) -l finder -f finder-compile-keywords-make-dist $$wins |
LANG=C $(EMACS) $(EMACSOPT) -l finder -f finder-compile-keywords-make-dist $$wins |
161 |
|
|
162 |
loaddefs.el: |
loaddefs.el: |
163 |
echo ";;; loaddefs.el --- automatically extracted autoloads" >> $@ |
echo ";;; loaddefs.el --- automatically extracted autoloads" >> $@ |
172 |
autoloads: loaddefs.el doit |
autoloads: loaddefs.el doit |
173 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
174 |
echo Directories: $$wins; \ |
echo Directories: $$wins; \ |
175 |
$(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
LANG=C $(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
176 |
|
|
177 |
subdirs.el: |
subdirs.el: |
178 |
$(MAKE) $(MFLAGS) update-subdirs |
$(MAKE) $(MFLAGS) update-subdirs |
225 |
tr ' ' '\012\012' | sort | uniq -u`; \ |
tr ' ' '\012\012' | sort | uniq -u`; \ |
226 |
for el in $(COMPILE_FIRST) $$els; do \ |
for el in $(COMPILE_FIRST) $$els; do \ |
227 |
echo Compiling $$el; \ |
echo Compiling $$el; \ |
228 |
$(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ |
LANG=C $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ |
229 |
done |
done |
230 |
|
|
231 |
# Compile all Lisp files, except those from DONTCOMPILE. This |
# Compile all Lisp files, except those from DONTCOMPILE. This |
239 |
tr ' ' '\012\012' | sort | uniq -u`; \ |
tr ' ' '\012\012' | sort | uniq -u`; \ |
240 |
for el in $(COMPILE_FIRST) $$els; do \ |
for el in $(COMPILE_FIRST) $$els; do \ |
241 |
echo Compiling $$el; \ |
echo Compiling $$el; \ |
242 |
$(emacs) -f batch-byte-compile $$el || exit 1; \ |
LANG=C $(emacs) -f batch-byte-compile $$el || exit 1; \ |
243 |
done |
done |
244 |
|
|
245 |
compile-calc: |
compile-calc: |
246 |
for el in $(find $(lisp)/calc -name '*.el'); do \ |
for el in $(find $(lisp)/calc -name '*.el'); do \ |
247 |
echo Compiling $$el; \ |
echo Compiling $$el; \ |
248 |
$(emacs) -f batch-byte-compile $$el || exit 1; \ |
LANG=C $(emacs) -f batch-byte-compile $$el || exit 1; \ |
249 |
done |
done |
250 |
|
|
251 |
# Backup compiled Lisp files in elc.tar.gz. If that file already |
# Backup compiled Lisp files in elc.tar.gz. If that file already |
264 |
# .elc is present. |
# .elc is present. |
265 |
|
|
266 |
recompile: doit |
recompile: doit |
267 |
$(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp) |
LANG=C $(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp) |
268 |
|
|
269 |
# Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el, |
# Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el, |
270 |
# because it's not sure it's up-to-date, and if it's not, that might |
# because it's not sure it's up-to-date, and if it's not, that might |