This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Toplevel Makefile.tpl cleanup 2/n part two


All the invocations of 'true' are, in fact, useless.

	* Makefile.tpl: Simplify logic.
	* Makefile.in: Regenerate.

--- Makefile.tpl.old	2003-03-04 12:13:04.000000000 -0500
+++ Makefile.tpl	2003-03-04 12:14:26.000000000 -0500
@@ -850,19 +850,11 @@
 	  if [ "$(BUILD_SUBDIR)" != "." ] ; then \
 	    if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
 	      if [ -f Makefile ]; then \
-	        if $(MAKE) distclean; then \
-	          true; \
-	        else \
-	          exit 1; \
-	        fi; \
-	      else \
-	        true; \
+	        $(MAKE) distclean || exit 1; \
 	      fi; \
 	    else \
 	      exit 1; \
 	    fi; \
-	  else \
-	    true; \
 	  fi; \
 	  srcdiroption="--srcdir=."; \
 	  libsrcdir="."; \
@@ -1040,19 +1032,11 @@
 	  if [ "$(TARGET_SUBDIR)" != "." ] ; then \
 	    if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
 	      if [ -f Makefile ]; then \
-	        if $(MAKE) distclean; then \
-	          true; \
-	        else \
-	          exit 1; \
-	        fi; \
-	      else \
-	        true; \
+	        $(MAKE) distclean || exit 1; \
 	      fi; \
 	    else \
 	      exit 1; \
 	    fi; \
-	  else \
-	    true; \
 	  fi; \
 	  srcdiroption="--srcdir=."; \
 	  libsrcdir="."; \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]