From: Nathanael Nerode <neroden@twcny.rr.com>
To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com,
binutils@sources.redhat.com, aoliva@redhat.com
Subject: Toplevel Makefile.tpl cleanup 2/n part three (real version)
Date: Tue, 04 Mar 2003 17:36:00 -0000 [thread overview]
Message-ID: <20030304173615.GA461@doctormoo> (raw)
This was supposed to be cleanup 2/n part three.
It eliminates an 'if' in favor of an '||'.
* Makefile.tpl: Simplify logic.
* Makefile.in: Regenerate.
--- Makefile.tpl 2003-03-04 12:34:09.000000000 -0500
+++ Makefile.tpl.new 2003-03-04 12:33:49.000000000 -0500
@@ -848,12 +848,10 @@
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
- if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
- if [ -f Makefile ]; then \
- $(MAKE) distclean || exit 1; \
- fi; \
- else \
- exit 1; \
+ $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" \
+ || exit 1; \
+ if [ -f Makefile ]; then \
+ $(MAKE) distclean || exit 1; \
fi; \
fi; \
srcdiroption="--srcdir=."; \
@@ -1030,12 +1028,10 @@
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(TARGET_SUBDIR)" != "." ] ; then \
- if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
- if [ -f Makefile ]; then \
- $(MAKE) distclean || exit 1; \
- fi; \
- else \
- exit 1; \
+ $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" \
+ || exit 1; \
+ if [ -f Makefile ]; then \
+ $(MAKE) distclean || exit 1; \
fi; \
fi; \
srcdiroption="--srcdir=."; \
next reply other threads:[~2003-03-04 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-04 17:36 Nathanael Nerode [this message]
2003-03-04 18:16 ` Alexandre Oliva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030304173615.GA461@doctormoo \
--to=neroden@twcny.rr.com \
--cc=aoliva@redhat.com \
--cc=binutils@sources.redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox