65 |
$(lisp)/international/mule-conf.el \ |
$(lisp)/international/mule-conf.el \ |
66 |
$(lisp)/language/czech.el \ |
$(lisp)/language/czech.el \ |
67 |
$(lisp)/language/devanagari.el \ |
$(lisp)/language/devanagari.el \ |
68 |
|
$(lisp)/language/malayalam.el \ |
69 |
|
$(lisp)/language/tamil.el \ |
70 |
$(lisp)/language/english.el \ |
$(lisp)/language/english.el \ |
71 |
$(lisp)/language/greek.el \ |
$(lisp)/language/greek.el \ |
72 |
$(lisp)/language/hebrew.el \ |
$(lisp)/language/hebrew.el \ |
135 |
esac; \ |
esac; \ |
136 |
done |
done |
137 |
|
|
138 |
finder_setwins=subdirs=`find $$wd -type d -print`; \ |
setwins_almost=subdirs=`find $$wd -type d -print`; \ |
139 |
for file in $$subdirs; do \ |
for file in $$subdirs; do \ |
140 |
case $$file in */Old | */RCS | */CVS | */CVS/* | */=* | */obsolete | */term ) ;; \ |
case $$file in */Old | */RCS | */CVS | */CVS/* | */=* | */obsolete | */term ) ;; \ |
141 |
*) wins="$$wins $$file" ;; \ |
*) wins="$$wins $$file" ;; \ |
144 |
|
|
145 |
doit: |
doit: |
146 |
|
|
147 |
cus-load.el: |
$(lisp)/cus-load.el: |
148 |
touch $@ |
touch $@ |
149 |
custom-deps: cus-load.el doit |
custom-deps: $(lisp)/cus-load.el doit |
150 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins_almost); \ |
151 |
echo Directories: $$wins; \ |
echo Directories: $$wins; \ |
152 |
$(EMACS) $(EMACSOPT) -l cus-dep -f custom-make-dependencies $$wins |
$(EMACS) $(EMACSOPT) -l cus-dep --eval '(setq generated-custom-dependencies-file "$(lisp)/cus-load.el")' -f custom-make-dependencies $$wins |
153 |
|
|
154 |
finder-data: doit |
finder-data: doit |
155 |
wd=$(lisp); $(finder_setwins); \ |
wd=$(lisp); $(setwins_almost); \ |
156 |
echo Directories: $$wins; \ |
echo Directories: $$wins; \ |
157 |
$(EMACS) $(EMACSOPT) -l finder -f finder-compile-keywords-make-dist $$wins |
$(EMACS) $(EMACSOPT) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins |
158 |
|
|
159 |
loaddefs.el: |
$(lisp)/loaddefs.el: |
160 |
echo ";;; loaddefs.el --- automatically extracted autoloads" >> $@ |
echo ";;; loaddefs.el --- automatically extracted autoloads" >> $@ |
161 |
echo ";;" >> $@; echo ";;; Code:" >> $@ |
echo ";;" >> $@; echo ";;; Code:" >> $@ |
162 |
echo "" >> $@ |
echo "" >> $@ |
166 |
echo ";;; no-update-autoloads: t" >> $@ |
echo ";;; no-update-autoloads: t" >> $@ |
167 |
echo ";;; End:" >> $@ |
echo ";;; End:" >> $@ |
168 |
echo ";;; loaddefs.el ends here" >> $@ |
echo ";;; loaddefs.el ends here" >> $@ |
169 |
autoloads: loaddefs.el doit |
autoloads: $(lisp)/loaddefs.el doit |
170 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
171 |
echo Directories: $$wins; \ |
echo Directories: $$wins; \ |
172 |
$(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
$(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins |
173 |
|
|
174 |
subdirs.el: |
$(lisp)/subdirs.el: |
175 |
$(MAKE) $(MFLAGS) update-subdirs |
$(MAKE) $(MFLAGS) update-subdirs |
176 |
update-subdirs: doit |
update-subdirs: doit |
177 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
196 |
|
|
197 |
.SUFFIXES: .elc .el |
.SUFFIXES: .elc .el |
198 |
|
|
199 |
.el.elc: subdirs.el |
.el.elc: $(lisp)/subdirs.el |
200 |
-$(emacs) -f batch-byte-compile $< |
-$(emacs) -f batch-byte-compile $< |
201 |
|
|
202 |
$(DONTCOMPILE:.el=.elc): |
$(DONTCOMPILE:.el=.elc): |
217 |
# $(DONTCOMPILE) twice. This is in case one of the files in DONTCOMPILE |
# $(DONTCOMPILE) twice. This is in case one of the files in DONTCOMPILE |
218 |
# is absent. -stef |
# is absent. -stef |
219 |
|
|
220 |
compile: subdirs.el doit |
compile: $(lisp)/subdirs.el doit |
221 |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
222 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
223 |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
234 |
|
|
235 |
# Compile all Lisp files, except those from DONTCOMPILE. This |
# Compile all Lisp files, except those from DONTCOMPILE. This |
236 |
# is like `compile' but compiles files unconditionally. |
# is like `compile' but compiles files unconditionally. |
237 |
compile-always: subdirs.el doit |
compile-always: $(lisp)/subdirs.el doit |
238 |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
# `|| true' prevents old Bash versions from getting confused |
239 |
|
# by an error. |
240 |
|
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ |
241 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
242 |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
243 |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
251 |
fi \ |
fi \ |
252 |
done |
done |
253 |
|
|
254 |
compile-calc: |
compile-calc: |
255 |
for el in $(find $(lisp)/calc -name '*.el'); do \ |
for el in `find $(lisp)/calc -name '*.el'`; do \ |
256 |
echo Compiling $$el; \ |
echo Compiling $$el; \ |
257 |
$(emacs) -f batch-byte-compile $$el || exit 1; \ |
$(emacs) -f batch-byte-compile $$el || exit 1; \ |
258 |
done |
done |
283 |
|
|
284 |
bootstrap-clean: |
bootstrap-clean: |
285 |
if test -x $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi |
if test -x $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi |
286 |
-rm -f $(lisp)/*.elc $(lisp)/*/*.elc |
cd $(lisp); rm -f *.elc */*.elc |
287 |
|
|
288 |
# Generate/update files for the bootstrap process. |
# Generate/update files for the bootstrap process. |
289 |
|
|
290 |
bootstrap: update-subdirs autoloads compile finder-data custom-deps |
bootstrap: update-subdirs autoloads compile |
291 |
|
|
292 |
|
# Generate/update files after the bootstrap process. |
293 |
|
# custom-deps needs `preloaded-file-list'. |
294 |
|
|
295 |
|
bootstrap-after: finder-data custom-deps |
296 |
|
|
297 |
distclean: |
distclean: |
298 |
-rm -f ./Makefile |
-rm -f ./Makefile |