aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes2001-04-18 14:10:23 +0000
committerAndrew Innes2001-04-18 14:10:23 +0000
commitcc7aa0538b5c8d721d033bc78570b1b797de8622 (patch)
treea7df8f662d87a21944b1fc659ce6341e7183d2dd
parent9cbff816d5b7a78811ad9b5191fb2782a5ec0201 (diff)
downloademacs-cc7aa0538b5c8d721d033bc78570b1b797de8622.tar.gz
emacs-cc7aa0538b5c8d721d033bc78570b1b797de8622.zip
(EMACSLOADPATH): Define.
(custom-deps): (autoloads): (.el.elc): (compile-files-CMD): (compile-files-SH): (recompile): Remove stuff to set EMACSLOADPATH.
-rw-r--r--lisp/makefile.w32-in20
1 files changed, 9 insertions, 11 deletions
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in
index 95a5bcab8c7..ebda1161711 100644
--- a/lisp/makefile.w32-in
+++ b/lisp/makefile.w32-in
@@ -38,6 +38,9 @@ EMACS = "$(THISDIR)/../bin/emacs.exe"
38 38
39EMACSOPT = -batch --no-init-file --no-site-file --multibyte 39EMACSOPT = -batch --no-init-file --no-site-file --multibyte
40 40
41# Set EMACSLOADPATH correctly (already defined in environment).
42EMACSLOADPATH=$(lisp)
43
41lisptagsfiles1 = $(lisp)/*.el 44lisptagsfiles1 = $(lisp)/*.el
42lisptagsfiles2 = $(lisp)/*/*.el 45lisptagsfiles2 = $(lisp)/*/*.el
43ETAGS = "../lib-src/$(BLD)/etags" 46ETAGS = "../lib-src/$(BLD)/etags"
@@ -144,8 +147,7 @@ cus-load.el:
144 touch $@ 147 touch $@
145custom-deps: cus-load.el doit 148custom-deps: cus-load.el doit
146 @echo Directories: $(WINS) 149 @echo Directories: $(WINS)
147 set EMACSLOADPATH=$(lisp) 150 -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hooks nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS)
148 -$(SETLOADPATH) $(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hooks nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS)
149 151
150finder-inf.el: 152finder-inf.el:
151 echo (provide $(SQUOTE)finder-inf)>> $@ 153 echo (provide $(SQUOTE)finder-inf)>> $@
@@ -167,8 +169,7 @@ loaddefs.el:
167 169
168autoloads: loaddefs.el doit 170autoloads: loaddefs.el doit
169 @echo Directories: $(WINS) 171 @echo Directories: $(WINS)
170 set EMACSLOADPATH=$(lisp) 172 $(emacs) -l autoload --eval $(ARGQUOTE)(setq find-file-hooks nil generated-autoload-file $(DQUOTE)$(lisp)/loaddefs.el$(DQUOTE))$(ARGQUOTE) -f batch-update-autoloads $(lisp) $(WINS)
171 $(SETLOADPATH) $(emacs) -l autoload --eval $(ARGQUOTE)(setq find-file-hooks nil generated-autoload-file $(DQUOTE)$(lisp)/loaddefs.el$(DQUOTE))$(ARGQUOTE) -f batch-update-autoloads $(lisp) $(WINS)
172 173
173subdirs.el: 174subdirs.el:
174 $(MAKE) $(MFLAGS) update-subdirs 175 $(MAKE) $(MFLAGS) update-subdirs
@@ -200,8 +201,7 @@ TAGS-LISP: $(lispsource)$(lisptagsfiles1) $(lispsource)$(lisptagsfiles2)
200.SUFFIXES: .elc .el 201.SUFFIXES: .elc .el
201 202
202.el.elc: 203.el.elc:
203 set EMACSLOADPATH=$(lisp) 204 -$(emacs) -f batch-byte-compile $<
204 -$(SETLOADPATH) $(emacs) -f batch-byte-compile $<
205 205
206$(DONTCOMPILE:.el=.elc): 206$(DONTCOMPILE:.el=.elc):
207 -$(DEL) $@ 207 -$(DEL) $@
@@ -219,7 +219,6 @@ $(DONTCOMPILE:.el=.elc):
219compile-files: subdirs.el compile-files-$(SHELLTYPE) doit 219compile-files: subdirs.el compile-files-$(SHELLTYPE) doit
220 220
221compile-files-CMD: 221compile-files-CMD:
222 set EMACSLOADPATH=$(lisp)
223# -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @attrib -r %g 222# -for %f in ($(lisp) $(WINS)) do for %g in (%f\*.elc) do @attrib -r %g
224 for %f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %f 223 for %f in ($(COMPILE_FIRST)) do $(emacs) -f batch-byte-compile %f
225 for %f in ($(lisp) $(WINS)) do for %g in (%f/*.el) do $(emacs) -f batch-byte-compile %f/%g 224 for %f in ($(lisp) $(WINS)) do for %g in (%f/*.el) do $(emacs) -f batch-byte-compile %f/%g
@@ -228,12 +227,12 @@ compile-files-SH:
228# for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done 227# for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
229 for el in $(COMPILE_FIRST); do \ 228 for el in $(COMPILE_FIRST); do \
230 echo Compiling $$el; \ 229 echo Compiling $$el; \
231 EMACSLOADPATH=$(lisp) $(emacs) -f batch-byte-compile $$el; \ 230 $(emacs) -f batch-byte-compile $$el; \
232 done 231 done
233 for dir in $(lisp) $(WINS); do \ 232 for dir in $(lisp) $(WINS); do \
234 for el in $$dir/*.el; do \ 233 for el in $$dir/*.el; do \
235 echo Compiling $$el; \ 234 echo Compiling $$el; \
236 EMACSLOADPATH=$(lisp) $(emacs) -f batch-byte-compile $$el; \ 235 $(emacs) -f batch-byte-compile $$el; \
237 done; \ 236 done; \
238 done 237 done
239 238
@@ -253,8 +252,7 @@ compile: backup-compiled-files compile-files
253# .elc is present. 252# .elc is present.
254 253
255recompile: doit 254recompile: doit
256 set EMACSLOADPATH=$(lisp) 255 $(emacs) -f batch-byte-recompile-directory .
257 $(SETLOADPATH) $(emacs) -f batch-byte-recompile-directory .
258 256
259# Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el, 257# Prepare a bootstrap in the lisp subdirectory. Build loaddefs.el,
260# because it's not sure it's up-to-date, and if it's not, that might 258# because it's not sure it's up-to-date, and if it's not, that might