From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] include config.mk and features.mk in env_pre.mk only if they exist
Date: Mon, 21 Sep 2015 09:52:58 -0400 (EDT) [thread overview]
Message-ID: <79356621.14547483.1442843578637.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <f1dfb6560fe17718bd189544b27c793251c1efca.1442842161.git.jstancek@redhat.com>
----- Original Message -----
> From: "Jan Stancek" <jstancek@redhat.com>
> To: ltp@lists.linux.it
> Sent: Monday, 21 September, 2015 3:32:09 PM
> Subject: [LTP] [PATCH] include config.mk and features.mk in env_pre.mk only if they exist
please ignore, v2 sent with better description.
Regards,
Jan
>
> $ git clean -f -d -x
> $ make autotools
>
> now leads to an infinite loop, that is running help target:
> make -C /usr/src/ltp help; false
> make[1]: Entering directory `/usr/src/ltp'
> make -C /usr/src/ltp help; false
> make[2]: Entering directory `/usr/src/ltp'
> make -C /usr/src/ltp help; false
> make[3]: Entering directory `/usr/src/ltp'
> make -C /usr/src/ltp help; false
> ...
>
> because include/mk/automake.mk has rule for these 2 files, which
> don't exist in clean tree. So it triggers help target, which again
> includes env_pre.mk and loop continues.
>
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
> ---
> include/mk/env_pre.mk | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/include/mk/env_pre.mk b/include/mk/env_pre.mk
> index 9c757e35e455..a7674141c83c 100644
> --- a/include/mk/env_pre.mk
> +++ b/include/mk/env_pre.mk
> @@ -98,8 +98,12 @@ endif
> # which are filtered below (e.g. clean). However these config files may be
> # needed for those targets (eg. the open posix testsuite is not cleaned even
> if
> # it's enabled by configure) thus it would be wise to do silent inclusion.
> --include $(abs_top_builddir)/include/mk/config.mk
> --include $(abs_top_builddir)/include/mk/features.mk
> +ifneq ($(wildcard $(abs_top_builddir)/include/mk/config.mk),)
> +include $(abs_top_builddir)/include/mk/config.mk
> +endif
> +ifneq ($(wildcard $(abs_top_builddir)/include/mk/features.mk),)
> +include $(abs_top_builddir)/include/mk/features.mk
> +endif
>
> # autotools, *clean, and help don't require config.mk, features.mk, etc...
> ifeq ($(filter autotools %clean .gitignore gitignore.%
> help,$(MAKECMDGOALS)),)
> --
> 1.8.3.1
>
>
> --
> Mailing list info: http://lists.linux.it/listinfo/ltp
>
prev parent reply other threads:[~2015-09-21 13:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-21 13:32 [LTP] [PATCH] include config.mk and features.mk in env_pre.mk only if they exist Jan Stancek
2015-09-21 13:52 ` Jan Stancek [this message]
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=79356621.14547483.1442843578637.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/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