Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
57f707e7
Commit
57f707e7
authored
Oct 08, 1999
by
Gerd Moellmann
Browse files
(compile): Compile files one by one. Set load-path to
current directory and subdirectories when compiling.
parent
11e4de5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/Makefile
lisp/Makefile
+18
-5
No files found.
lisp/ChangeLog
View file @
57f707e7
1999-10-08 Gerd Moellmann <gerd@gnu.org>
* Makefile (compile): Compile files one by one. Set load-path to
current directory and subdirectories when compiling.
1999-10-08 Gerd Moellmann <gerd@gnu.org>
* Makefile (EMACSOPT, DONTCOMPILE, EL): New.
...
...
lisp/Makefile
View file @
57f707e7
...
...
@@ -115,8 +115,24 @@ TAGS-LISP: $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)
# Compile all Lisp files, except those from DONTCOMPILE. This
# compiles files unconditionally. All .elc files are made writable
# before compilation in case we checked out read-only (CVS option -r).
# Files must be compiled one by one, otherwise apparently
# eval-when-compile's in some Lisp files make problems in files being
# compiled later. We also set the load-path of the Emacs used for
# compilation to the current directory and its subdirectories, to
# make sure require's and load's in the files being compiled find
# the right files.
compile
:
doit
wd
=
`
pwd
`
;
\
find
$$
wd
-name
"*.elc"
| xargs
chmod
+w
;
\
subdirs
=
`
find
$$
wd
-type
d
-print
`
;
\
for
dir
in
$$
subdirs
;
do
\
case
$$
dir
in
\
*
/Old
|
*
/RCS
|
*
/CVS
|
*
/
=
*
)
;;
\
*
)
loadpath
=
"
$$
loadpath
\"
$$
dir
\"
"
;;
\
esac
;
\
done
;
\
loadpath
=
"(setq load-path '(
$$
loadpath))"
;
\
dont_compile
=
`
echo
$(DONTCOMPILE)
`
;
\
for
el
in
$(EL)
;
do
\
compile_it
=
y
;
\
...
...
@@ -126,14 +142,11 @@ compile: doit
fi
;
\
done
;
\
if
test
$$
compile_it
=
y
;
then
\
els
=
"
$$
el
$$
els"
;
\
echo
"Compile
$$
el"
;
\
$(emacs)
--eval
"
$$
loadpath"
-f
batch-byte-compile
$$
el
;
\
else
\
echo
"Don't compile
$$
el"
;
\
fi
;
\
done
;
\
chmod
+w
$$
els
;
\
$(emacs)
-f
batch-byte-compile
$$
els
;
done
# Recompile all Lisp files which are newer than their .elc files.
# Note that this doesn't create .elc files. It only recompiles if an
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment