Mercurial > emacs
comparison lisp/Makefile @ 25971:999bac80682f
(compile, bootstrap-compile): don't use setwins: I'm an idiot.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 10 Oct 1999 19:19:48 +0000 |
parents | 9fb5da1b86d6 |
children | e7205498db63 |
comparison
equal
deleted
inserted
replaced
25970:aba4d088f0d8 | 25971:999bac80682f |
---|---|
110 # the right files. | 110 # the right files. |
111 | 111 |
112 compile: doit | 112 compile: doit |
113 wd=`pwd`; \ | 113 wd=`pwd`; \ |
114 find $$wd -name "*.elc" -print | xargs chmod +w; \ | 114 find $$wd -name "*.elc" -print | xargs chmod +w; \ |
115 $(setwins); \ | 115 subdirs=`find $$wd -type d -print`; \ |
116 loadpath="(setq load-path '($$wins))"; \ | 116 for dir in $$subdirs; do \ |
117 case $$dir in \ | |
118 */Old | */RCS | */CVS | */=* ) ;; \ | |
119 *) loadpath="$$loadpath \"$$dir\"" ;; \ | |
120 esac; \ | |
121 done; \ | |
122 loadpath="(setq load-path '($$loadpath))"; \ | |
117 dont_compile=`echo $(DONTCOMPILE)`; \ | 123 dont_compile=`echo $(DONTCOMPILE)`; \ |
118 for el in $(EL); do \ | 124 for el in $(EL); do \ |
119 compile_it=y; \ | 125 compile_it=y; \ |
120 for dont in $$dont_compile; do \ | 126 for dont in $$dont_compile; do \ |
121 if test $$el = $$dont; then \ | 127 if test $$el = $$dont; then \ |
122 compile_it=n; \ | 128 compile_it=n; \ |
123 fi; \ | 129 fi; \ |
124 done; \ | 130 done; \ |
125 if test $$compile_it = y; then \ | 131 if test $$compile_it = y; then \ |
132 echo $(emacs) --eval "$$loadpath" -f batch-byte-compile $$el; \ | |
126 $(emacs) --eval "$$loadpath" -f batch-byte-compile $$el; \ | 133 $(emacs) --eval "$$loadpath" -f batch-byte-compile $$el; \ |
127 else \ | 134 else \ |
128 echo "Don't compile $$el"; \ | 135 echo "Don't compile $$el"; \ |
129 fi; \ | 136 fi; \ |
130 done | 137 done |
134 # sure we start from a clean basis. | 141 # sure we start from a clean basis. |
135 | 142 |
136 bootstrap-compile: doit | 143 bootstrap-compile: doit |
137 wd=`pwd`; \ | 144 wd=`pwd`; \ |
138 find $$wd -name "*.elc" -print | xargs rm -f \ | 145 find $$wd -name "*.elc" -print | xargs rm -f \ |
139 $(setwins); \ | 146 subdirs=`find $$wd -type d -print`; \ |
140 loadpath="(setq load-path '($$wins))"; \ | 147 for dir in $$subdirs; do \ |
148 case $$dir in \ | |
149 */Old | */RCS | */CVS | */=* ) ;; \ | |
150 *) loadpath="$$loadpath \"$$dir\"" ;; \ | |
151 esac; \ | |
152 done; \ | |
153 loadpath="(setq load-path '($$loadpath))"; \ | |
141 dont_compile=`echo $(DONTCOMPILE)`; \ | 154 dont_compile=`echo $(DONTCOMPILE)`; \ |
142 for el in $(EL); do \ | 155 for el in $(EL); do \ |
143 compile_it=y; \ | 156 compile_it=y; \ |
144 for dont in $$dont_compile; do \ | 157 for dont in $$dont_compile; do \ |
145 if test $$el = $$dont; then \ | 158 if test $$el = $$dont; then \ |