aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-05-30 02:56:59 +0000
committerGlenn Morris2008-05-30 02:56:59 +0000
commit9d7316f071c48eb302580977e15ee32641203ef1 (patch)
tree167e8555d1cfcc9f8b033935187224084a4a15e1
parenta9bb457b3c88d679e35e7086bf274b398a72dfd8 (diff)
downloademacs-9d7316f071c48eb302580977e15ee32641203ef1.tar.gz
emacs-9d7316f071c48eb302580977e15ee32641203ef1.zip
(update-elclist): Hide the warning when it does not apply, make it
milder when it does. (autogen-clean): New target. (maintainer-clean): Use autogen-clean.
-rw-r--r--lisp/Makefile.in29
1 files changed, 13 insertions, 16 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 4f7ed58eda7..c8d7395c9de 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -151,20 +151,12 @@ TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
151 151
152.PHONY: update-elclist 152.PHONY: update-elclist
153 153
154## Construct a sed command file that operates on lines between 154## Post-bootstrap, find the list of .elc files, exclude the members
155## ^ELCFILES and the next blank line. Convert spaces between members 155## of COMPILE_FIRST, and use sed to update ELCFILES in Makefile.in.
156## of COMPILE_FIRST to "\|", and escape directory "/". List the .elc 156## Errors in the final sed are non-fatal, since they have no effect on
157## files, exclude the members of COMPILE_FIRST, convert ^$(lisp) to a 157## building Emacs. chmod +w is for CVSREAD=1.
158## literal " $(lisp)", add trailing " \\\" to the end of every line
159## (the last \ continues the line in sed, the other \\ result in a
160## single \ at the end of the replacement text). For the last line,
161## just use a single "\", for sed. Finally, run sed using the command
162## so constructed and update Makefile.in. chmod +w is for CVSREAD=1.
163## Errors in final sed are non-fatal, since they have no effect on
164## building Emacs.
165## "echo" is non-portable with regards to backslashes, eg between zsh 158## "echo" is non-portable with regards to backslashes, eg between zsh
166## and bash. Hence the used of sed on line 2 below (the ones on line 159## and bash. Hence the use of sed on line 2 below (line 1 seems to be OK).
167## 1 seem to be OK).
168## http://lists.gnu.org/archive/html/emacs-devel/2008-05/msg01535.html 160## http://lists.gnu.org/archive/html/emacs-devel/2008-05/msg01535.html
169update-elclist: 161update-elclist:
170 echo "/^ELCFILES/,/^$$/c\\" > temp.sed 162 echo "/^ELCFILES/,/^$$/c\\" > temp.sed
@@ -174,8 +166,11 @@ update-elclist:
174 echo "" >> temp.sed 166 echo "" >> temp.sed
175 -sed -f temp.sed $(lisp)/Makefile.in > temp-elcfiles || rm temp-elcfiles 167 -sed -f temp.sed $(lisp)/Makefile.in > temp-elcfiles || rm temp-elcfiles
176 rm temp.sed 168 rm temp.sed
177 chmod +w $(lisp)/Makefile.in 169 @test -f temp-elcfiles || echo "Maintainer warning: failed to update Makefile.in. You can ignore this if you are not an Emacs developer."
178 mv -f temp-elcfiles $(lisp)/Makefile.in || echo "Maintainer warning: failed to update Makefile.in" 170 if test -f temp-elcfiles; then \
171 chmod +w $(lisp)/Makefile.in; \
172 mv -f temp-elcfiles $(lisp)/Makefile.in; \
173 fi
179 174
180## Explicitly list the .elc files, for the sake of parallel builds. 175## Explicitly list the .elc files, for the sake of parallel builds.
181## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html 176## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html
@@ -1403,9 +1398,11 @@ bootstrap-prepare:
1403 $(MAKE) $(MFLAGS) autoloads; \ 1398 $(MAKE) $(MFLAGS) autoloads; \
1404 fi 1399 fi
1405 1400
1406maintainer-clean: distclean bootstrap-clean 1401autogen-clean:
1407 cd $(lisp); rm -f $(AUTOGENEL) 1402 cd $(lisp); rm -f $(AUTOGENEL)
1408 1403
1404maintainer-clean: distclean bootstrap-clean autogen-clean
1405
1409## NB note that this rules assume only one level of subdirs below lisp/. 1406## NB note that this rules assume only one level of subdirs below lisp/.
1410## If nested subdirs are added, it's probably time to switch to: 1407## If nested subdirs are added, it's probably time to switch to:
1411## find $(lisp) -name "*.elc" -exec rm -f '{}' ';' 1408## find $(lisp) -name "*.elc" -exec rm -f '{}' ';'