* Makefile.in (all): Simplify.
authorIan Lance Taylor <ian@airs.com>
Wed, 21 Feb 1996 17:02:23 +0000 (17:02 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 21 Feb 1996 17:02:23 +0000 (17:02 +0000)
(clean, mostlyclean): SUBDIRS may contain whitespace; fix the loop
as in the all target.
(distclean, maintainer-clean, realclean): Likewise.
(install): Likewise.

sim/ChangeLog
sim/Makefile.in

index 9c4ddb5d5eb088926222adc1e83f6fecadb2df7b..6616dee2abfb6f4faddcae0c195e9cb8434b7f97 100644 (file)
@@ -1,3 +1,15 @@
+Wed Feb 21 11:59:57 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * Makefile.in (all): Simplify.
+       (clean, mostlyclean): SUBDIRS may contain whitespace; fix the loop
+       as in the all target.
+       (distclean, maintainer-clean, realclean): Likewise.
+       (install): Likewise.
+
+Thu Feb 15 18:37:00 1996  Fred Fish  <fnf@cygnus.com>
+
+       * Makefile.in (all): Remove extra '\' char from shell script.
+
 Wed Feb 14 16:43:59 1996  Mike Meissner  <meissner@tiktok.cygnus.com>
 
        * Makefile.in (all): Avoid a for loop with zero elements, even if
index 4879055bb5f2e82ee6ff8acab83e8a6a9b251b68..c09ee3c6e7ab33d22420e726737b65a09525e55d 100644 (file)
@@ -98,51 +98,49 @@ FLAGS_TO_PASS = \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
 
 all:
-       @if [ x"${SUBDIRS}" != x ] ; then \
-               rootme=`pwd` ; export rootme ; \
-               srcroot=`cd $(srcdir); pwd`; export srcroot; \
-               for dir in . ${SUBDIRS}; do \
-                       if [ "$$dir" = "." ]; then \
-                               true; \\
-                       elif [ -d $$dir ]; then \
-                               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
-                       else true; fi; \
-               done ; \
-       else true; fi
+       @rootme=`pwd` ; export rootme ; \
+       srcroot=`cd $(srcdir); pwd`; export srcroot; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true; \
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
+               else true; fi; \
+       done
 
 clean mostlyclean: 
-       @if [ x"${SUBDIRS}" != x ] ; then \
-               rootme=`pwd` ; export rootme ; \
-               srcroot=`cd $(srcdir); pwd`; export srcroot; \
-               for dir in ${SUBDIRS}; do \
-                       if [ -d $$dir ]; then \
-                               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
-                       else true; fi; \
-               done ; \
-       else true; fi
+       @rootme=`pwd` ; export rootme ; \
+       srcroot=`cd $(srcdir); pwd`; export srcroot; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true; \
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+               else true; fi; \
+       done
 
 distclean maintainer-clean realclean:
-       @if [ x"${SUBDIRS}" != x ] ; then \
-               rootme=`pwd` ; export rootme ; \
-               srcroot=`cd $(srcdir); pwd`; export srcroot; \
-               for dir in ${SUBDIRS}; do \
-                       if [ -d $$dir ]; then \
-                               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
-                       else true; fi; \
-               done ; \
-       else true; fi
+       @rootme=`pwd` ; export rootme ; \
+       srcroot=`cd $(srcdir); pwd`; export srcroot; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true; \
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+               else true; fi; \
+       done
        rm -f Makefile config.cache config.log config.status
 
 install:
-       @if [ x${SUBDIRS} != x ] ; then \
-               rootme=`pwd` ; export rootme ; \
-               srcroot=`cd $(srcdir); pwd`; export srcroot; \
-               for dir in ${SUBDIRS}; do \
-                       if [ -d $$dir ]; then \
-                               (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
-                       else true; fi; \
-               done; \
-       else true; fi
+       @rootme=`pwd` ; export rootme ; \
+       srcroot=`cd $(srcdir); pwd`; export srcroot; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true;
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
+               else true; fi; \
+       done
 
 info:
 install-info: