* Toplevel Makefile.tpl cleanup 2/n part two
@ 2003-03-04 17:16 Nathanael Nerode
2003-03-04 18:13 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Nathanael Nerode @ 2003-03-04 17:16 UTC (permalink / raw)
To: gcc-patches, gdb-patches, binutils, aoliva
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="."; \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Toplevel Makefile.tpl cleanup 2/n part two
2003-03-04 17:16 Toplevel Makefile.tpl cleanup 2/n part two Nathanael Nerode
@ 2003-03-04 18:13 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2003-03-04 18:13 UTC (permalink / raw)
To: Nathanael Nerode; +Cc: gcc-patches, gdb-patches, binutils
On Mar 4, 2003, Nathanael Nerode <neroden@twcny.rr.com> wrote:
> All the invocations of 'true' are, in fact, useless.
Nope. Some make&shell combinations will fail if an `if' test fails
and there's no `else true' clause.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-04 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-04 17:16 Toplevel Makefile.tpl cleanup 2/n part two Nathanael Nerode
2003-03-04 18:13 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).