Tweak to Makefile rules that list *.el files
authorGlenn Morris <rgm@gnu.org>
Sun, 1 Sep 2013 02:12:32 +0000 (19:12 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 1 Sep 2013 02:12:32 +0000 (19:12 -0700)
* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
* test/automated/Makefile.in (setwins):
Avoid leading space in $wins.  Otherwise the sed command used by
eg compile-main ends up containing "/*.el".

Fixes: debbugs:15170

lisp/ChangeLog
lisp/Makefile.in
test/ChangeLog
test/automated/Makefile.in

index 2dda52f..be8caf1 100644 (file)
@@ -1,5 +1,9 @@
 2013-09-01  Glenn Morris  <rgm@gnu.org>
 
+       * Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
+       Avoid leading space in $wins.  Otherwise the sed command used by
+       eg compile-main ends up containing "/*.el".  (Bug#15170)
+
        * frame.el (frame-background-mode): Doc fix.  (Bug#15226)
 
 2013-08-30  Glenn Morris  <rgm@gnu.org>
index c71fb37..4fba105 100644 (file)
@@ -118,7 +118,7 @@ emacs = EMACSLOADPATH=$(lisp) LC_ALL=C $(EMACS) $(EMACSOPT)
 setwins=subdirs=`find . -type d -print`; \
        for file in $$subdirs; do \
           case $$file in */.* | */.*/* | */=* ) ;; \
-               *) wins="$$wins $$file" ;; \
+               *) wins="$$wins$${wins:+ }$$file" ;; \
           esac; \
         done
 
@@ -126,7 +126,7 @@ setwins=subdirs=`find . -type d -print`; \
 setwins_almost=subdirs=`find . -type d -print`; \
        for file in $$subdirs; do \
           case $$file in */.* | */.*/* | */=* | */obsolete | */term ) ;; \
-               *) wins="$$wins $$file" ;; \
+               *) wins="$$wins$${wins:+ }$$file" ;; \
           esac; \
         done
 
@@ -134,7 +134,7 @@ setwins_almost=subdirs=`find . -type d -print`; \
 setwins_for_subdirs=subdirs=`find . -type d -print`; \
        for file in $$subdirs; do \
           case $$file in */.* | */.*/* | */=* | */cedet* ) ;; \
-               *) wins="$$wins $$file" ;; \
+               *) wins="$$wins$${wins:+ }$$file" ;; \
           esac; \
         done
 
index bbc8415..7b39097 100644 (file)
@@ -1,3 +1,9 @@
+2013-09-01  Glenn Morris  <rgm@gnu.org>
+
+       * automated/Makefile.in (setwins): Avoid leading space in $wins.
+       Otherwise the sed command used by eg compile-main ends up
+       containing "/*.el".  (Bug#15170)
+
 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
index 5e0ca18..bf8e62f 100644 (file)
@@ -52,7 +52,7 @@ emacs = EMACSLOADPATH=$(lispsrc):$(test) LC_ALL=C $(EMACS) $(EMACSOPT)
 setwins=subdirs=`find . -type d -print`; \
        for file in $$subdirs; do \
           case $$file in */.* | */.*/* | */=* | ./data* ) ;; \
-               *) wins="$$wins $$file" ;; \
+               *) wins="$$wins$${wins:+ }$$file" ;; \
           esac; \
         done