]> git.eshelyaron.com Git - emacs.git/commitdiff
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 2dda52f82edf70f1bc4d81c244fc6f95f9f2d551..be8caf189d22ff684d2295557ecf2dd823f87d87 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 c71fb37e62cc0fcebca6e117fb002509e5234405..4fba1053dfad61c2668a2fd9cb6299233664a646 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 bbc841585d1d1ef58b6328c409b2f055fe263a69..7b39097d3b5876abda347a81e6005efab7bd4788 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 5e0ca182c65890a74c2400084723d0f43d92ae77..bf8e62f77cda777a010910303b4e30fae7e651aa 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