comparison lisp/Makefile.in @ 95431:a86a38ec3662

(compile-last): Replace tr in `els' assignment with sed. Remove shell variable `elc'. Split tests to hopefully be more portable. Fix `sel' assignment.
author Glenn Morris <rgm@gnu.org>
date Sat, 31 May 2008 02:23:47 +0000
parents 9e040b6f6a8f
children 70d2e07fa023
comparison
equal deleted inserted replaced
95430:04a952ac356f 95431:a86a38ec3662
87 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* ) ;; \ 87 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* ) ;; \
88 *) wins="$$wins $$wd/$$file" ;; \ 88 *) wins="$$wins $$wd/$$file" ;; \
89 esac; \ 89 esac; \
90 done 90 done
91 91
92 # Find all subdirectories except `obsolete'. 92 # Find all subdirectories except `obsolete' and `term'.
93 93
94 setwins_almost=subdirs=`(cd $$wd; find . -type d -print)`; \ 94 setwins_almost=subdirs=`(cd $$wd; find . -type d -print)`; \
95 for file in $$subdirs; do \ 95 for file in $$subdirs; do \
96 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* | */obsolete | */term ) ;; \ 96 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* | */obsolete | */term ) ;; \
97 *) wins="$$wins $$wd/$$file" ;; \ 97 *) wins="$$wins $$wd/$$file" ;; \
1269 $(MAKE) $(MFLAGS) compile 1269 $(MAKE) $(MFLAGS) compile
1270 1270
1271 ## In case any files are missing from ELCFILES. 1271 ## In case any files are missing from ELCFILES.
1272 compile-last: 1272 compile-last:
1273 @wd=$(lisp); $(setwins); \ 1273 @wd=$(lisp); $(setwins); \
1274 els=`echo $$wins | tr ' \011' '\012\012' | \ 1274 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
1275 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \
1276 for el in $(COMPILE_FIRST) $$els; do \ 1275 for el in $(COMPILE_FIRST) $$els; do \
1277 elc=$${el}c; \ 1276 test -f $$el || continue; \
1278 if test -f $$el && ! test -f $$elc && \ 1277 test -f $${el}c && continue; \
1279 ! grep 'no-byte-compile: t' $$el > /dev/null; then \ 1278 grep 'no-byte-compile: t' $$el > /dev/null && continue; \
1280 sel=`echo $el | sed "s|^$$lisp|\$$(lisp)|"`; \ 1279 sel=`echo $$el | sed "s|^$(lisp)|\\$$(lisp)|"`; \
1281 echo "Maintainer warning: $$sel missing from \$$ELCFILES?"; \ 1280 echo "Maintainer warning: $$sel missing from \$$ELCFILES?"; \
1282 echo "Compiling $$el"; \ 1281 echo "Compiling $$el"; \
1283 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \ 1282 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
1284 fi \
1285 done 1283 done
1286 1284
1287 compile-calc: 1285 compile-calc:
1288 for el in $(lisp)/calc/*.el; do \ 1286 for el in $(lisp)/calc/*.el; do \
1289 echo Compiling $$el; \ 1287 echo Compiling $$el; \