1 |
# Maintenance productions for the Lisp directory |
# Maintenance productions for the Lisp directory |
2 |
# Copyright (C) 2000, 01, 03, 2004 Free Software Foundation, Inc. |
# Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
# This file is part of GNU Emacs. |
# This file is part of GNU Emacs. |
5 |
|
|
39 |
lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el |
lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el |
40 |
ETAGS = ../lib-src/etags |
ETAGS = ../lib-src/etags |
41 |
|
|
|
# Files which should not be compiled. If you change the name `DONTCOMPILE' |
|
|
# to something different, you'll have to change make-dist as well, and |
|
|
# modify the lists in $lisp and $shortlisp on src/Makefile.in. |
|
|
# |
|
|
# - emacs-lisp/cl-specs.el: only contains `def-edebug-spec's so there's |
|
|
# no point compiling it, although it doesn't hurt. |
|
|
|
|
|
DONTCOMPILE = \ |
|
|
$(lisp)/cus-load.el \ |
|
|
$(lisp)/emacs-lisp/cl-specs.el \ |
|
|
$(lisp)/eshell/esh-maint.el \ |
|
|
$(lisp)/eshell/esh-groups.el \ |
|
|
$(lisp)/finder-inf.el \ |
|
|
$(lisp)/forms-d2.el \ |
|
|
$(lisp)/forms-pass.el \ |
|
|
$(lisp)/generic-x.el \ |
|
|
$(lisp)/international/latin-1.el \ |
|
|
$(lisp)/international/latin-2.el \ |
|
|
$(lisp)/international/latin-3.el \ |
|
|
$(lisp)/international/latin-4.el \ |
|
|
$(lisp)/international/latin-5.el \ |
|
|
$(lisp)/international/latin-8.el \ |
|
|
$(lisp)/international/latin-9.el \ |
|
|
$(lisp)/international/mule-conf.el \ |
|
|
$(lisp)/language/czech.el \ |
|
|
$(lisp)/language/devanagari.el \ |
|
|
$(lisp)/language/malayalam.el \ |
|
|
$(lisp)/language/tamil.el \ |
|
|
$(lisp)/language/kannada.el \ |
|
|
$(lisp)/language/english.el \ |
|
|
$(lisp)/language/greek.el \ |
|
|
$(lisp)/language/hebrew.el \ |
|
|
$(lisp)/language/japanese.el \ |
|
|
$(lisp)/language/korean.el \ |
|
|
$(lisp)/language/lao.el \ |
|
|
$(lisp)/language/misc-lang.el \ |
|
|
$(lisp)/language/romanian.el \ |
|
|
$(lisp)/language/slovak.el \ |
|
|
$(lisp)/language/thai.el \ |
|
|
$(lisp)/language/utf-8-lang.el \ |
|
|
$(lisp)/language/georgian.el \ |
|
|
$(lisp)/loaddefs.el \ |
|
|
$(lisp)/ldefs-boot.el \ |
|
|
$(lisp)/loadup.el \ |
|
|
$(lisp)/mail/blessmail.el \ |
|
|
$(lisp)/patcomp.el \ |
|
|
$(lisp)/paths.el \ |
|
|
$(lisp)/play/bruce.el \ |
|
|
$(lisp)/subdirs.el \ |
|
|
$(lisp)/term/internal.el \ |
|
|
$(lisp)/term/AT386.el \ |
|
|
$(lisp)/term/apollo.el \ |
|
|
$(lisp)/term/bobcat.el \ |
|
|
$(lisp)/term/iris-ansi.el \ |
|
|
$(lisp)/term/keyswap.el \ |
|
|
$(lisp)/term/linux.el \ |
|
|
$(lisp)/term/lk201.el \ |
|
|
$(lisp)/term/news.el \ |
|
|
$(lisp)/term/vt102.el \ |
|
|
$(lisp)/term/vt125.el \ |
|
|
$(lisp)/term/vt200.el \ |
|
|
$(lisp)/term/vt201.el \ |
|
|
$(lisp)/term/vt220.el \ |
|
|
$(lisp)/term/vt240.el \ |
|
|
$(lisp)/term/vt300.el \ |
|
|
$(lisp)/term/vt320.el \ |
|
|
$(lisp)/term/vt400.el \ |
|
|
$(lisp)/term/vt420.el \ |
|
|
$(lisp)/term/wyse50.el \ |
|
|
$(lisp)/version.el |
|
|
|
|
42 |
# Elisp files auto-generated. |
# Elisp files auto-generated. |
43 |
AUTOGENEL = loaddefs.el \ |
AUTOGENEL = loaddefs.el \ |
44 |
cus-load.el \ |
cus-load.el \ |
121 |
# Update the AUTHORS file. |
# Update the AUTHORS file. |
122 |
|
|
123 |
update-authors: |
update-authors: |
124 |
$(emacs) -f batch-update-authors $(srcdir)/AUTHORS $(srcdir) |
$(emacs) -l authors -f batch-update-authors $(srcdir)/AUTHORS $(srcdir) |
125 |
|
|
126 |
TAGS: $(lisptagsfiles1) $(lisptagsfiles2) |
TAGS: $(lisptagsfiles1) $(lisptagsfiles2) |
127 |
els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ |
els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ |
136 |
.el.elc: $(lisp)/subdirs.el |
.el.elc: $(lisp)/subdirs.el |
137 |
-$(emacs) -f batch-byte-compile $< |
-$(emacs) -f batch-byte-compile $< |
138 |
|
|
139 |
$(DONTCOMPILE:.el=.elc): |
# Compile all Lisp files, but don't recompile those that are up to |
140 |
-rm -f $@ |
# date. Some files don't actually get compiled because they set the |
141 |
|
# local variable no-byte-compile. |
142 |
# Compile all Lisp files, except those from DONTCOMPILE, |
|
143 |
# but don't recompile those that are up to date. |
# All .elc files are made writable before compilation in case we |
144 |
|
# checked out read-only (CVS option -r). Files MUST be compiled one by |
145 |
# All .elc files are made writable |
# one. If we compile several files in a row we can't make sure that |
146 |
# before compilation in case we checked out read-only (CVS option -r). |
# the compilation environment is clean. We also set the load-path of |
147 |
# Files MUST be compiled one by one. If we compile several files in a |
# the Emacs used for compilation to the current directory and its |
148 |
# row we can't make sure that the compilation environment is clean. |
# subdirectories, to make sure require's and load's in the files being |
149 |
# We also set the load-path of the Emacs used for compilation to the |
# compiled find the right files. |
|
# current directory and its subdirectories, to make sure require's and |
|
|
# load's in the files being compiled find the right files. |
|
|
|
|
|
# NOTE about DONTCOMPILE: in the `echo <foo> | sort | uniq -u' we pass |
|
|
# $(DONTCOMPILE) twice. This is in case one of the files in DONTCOMPILE |
|
|
# is absent. -stef |
|
150 |
|
|
151 |
compile: $(lisp)/subdirs.el doit |
compile: $(lisp)/subdirs.el doit |
152 |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
153 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
154 |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
els=`echo $$wins | tr ' \011' '\012\012' | \ |
155 |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
|
els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
|
|
tr ' ' '\012\012' | sort | uniq -u`; \ |
|
156 |
for el in $(COMPILE_FIRST) $$els; do \ |
for el in $(COMPILE_FIRST) $$els; do \ |
157 |
if test -f $$el; \ |
if test -f $$el; \ |
158 |
then \ |
then \ |
161 |
fi \ |
fi \ |
162 |
done |
done |
163 |
|
|
164 |
# Compile all Lisp files, except those from DONTCOMPILE. This |
# Compile all Lisp files. This is like `compile' but compiles files |
165 |
# is like `compile' but compiles files unconditionally. |
# unconditionally. Some files don't actually get compiled because they |
166 |
|
# set the local variable no-byte-compile. |
167 |
|
|
168 |
compile-always: $(lisp)/subdirs.el doit |
compile-always: $(lisp)/subdirs.el doit |
169 |
# `|| true' prevents old Bash versions from getting confused |
# `|| true' prevents old Bash versions from getting confused |
170 |
# by an error. |
# by an error. |
171 |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ |
find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ |
172 |
wd=$(lisp); $(setwins); \ |
wd=$(lisp); $(setwins); \ |
173 |
elpat=`echo $$wins | tr ' ' '\012\012' | \ |
els=`echo $$wins | tr ' \011' '\012\012' | \ |
174 |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
|
els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
|
|
tr ' ' '\012\012' | sort | uniq -u`; \ |
|
175 |
for el in $(COMPILE_FIRST) $$els; do \ |
for el in $(COMPILE_FIRST) $$els; do \ |
176 |
if test -f $$el; \ |
if test -f $$el; \ |
177 |
then \ |
then \ |