From: Petr Vorel <pvorel@suse.cz>
To: rbm@suse.com
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH 4/4] configure: Add missing files for removal in ac-maintainer-clean target
Date: Tue, 1 Apr 2025 09:58:56 +0200 [thread overview]
Message-ID: <20250401075856.GF299271@pevik> (raw)
In-Reply-To: <20250327-fix_make_clean-v1-4-8b9ed2a8d96a@suse.com>
> From: Ricardo B. Marlière <rbm@suse.com>
> The ac-maintainer-clean target should be responsible to remove all
> generated files, in this case from `make autotools`. Add the remaining to
> the list and also make sure it happens before any call to other targets in
> nested Makefiles, so if there are any errors in them, they happen lastly.
> Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
> ---
> include/mk/automake.mk | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
> diff --git a/include/mk/automake.mk b/include/mk/automake.mk
> index d96da8313dc8dc4f4d6d728db72b0f749d269bfe..40fab124370d7c9a71fa502ff75e39cb1d31197f 100644
> --- a/include/mk/automake.mk
> +++ b/include/mk/automake.mk
> @@ -63,11 +63,11 @@ ac-clean::
> ac-distclean:: ac-clean
> ac-maintainer-clean:: ac-distclean
> + $(RM) -f $(AUTOMAKE_FILES) aclocal.m4 compile config.guess config.sub configure m4/Makefile.in
OK, this removes "compile" file (Wrapper for compilers which do not understand
'-c -o'). Interesting. IMHO the rest of newly explicitly added files (e.g.
config.guess, config.sub, m4/Makefile.in) were removed without this change (part
of $(AUTOMAKE_FILES) ).
rm -f -f aclocal.m4 configure config.guess config.sub install-sh missing m4/Makefile.in
rm -f -f include/*config.h.in
Kind regards,
Petr
> + $(MAKE) -C "$(top_srcdir)/include" $@;
> for d in $(AUTOCONFED_SUBDIRS); do \
> $(MAKE) -C "$(top_srcdir)/$$d" $@; \
> done
> - $(RM) -f aclocal.m4 configure $(AUTOMAKE_FILES) m4/Makefile.in
> - $(RM) -f include/*config.h.in
> # Don't include config.h, or make will (rightfully) whine about overriding
> # rules.
> @@ -82,10 +82,10 @@ AUTOGENERATED_FILES = \
> m4/Makefile
> distclean:: %: clean ac-distclean
> + $(RM) -f $(AUTOGENERATED_FILES)
> for d in $(AUTOCONFED_SUBDIRS); do \
> $(MAKE) -C "$(top_srcdir)/$$d" $@; \
> done
> - $(RM) -f $(AUTOGENERATED_FILES)
> maintainer-clean:: distclean ac-maintainer-clean
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2025-04-01 7:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 21:56 [LTP] [PATCH 0/4] configure: Tidy up removal of generated artifacts Ricardo B. Marliere via ltp
2025-03-27 21:56 ` [LTP] [PATCH 1/4] configure: Add missing include/mk/config-openposix.mk reference Ricardo B. Marliere via ltp
2025-03-28 10:31 ` Cyril Hrubis
2025-04-01 7:24 ` Petr Vorel
2025-03-27 21:56 ` [LTP] [PATCH 2/4] openposix: Makefile: Add the standard "maintainer-clean" target Ricardo B. Marliere via ltp
2025-04-01 7:38 ` Petr Vorel
2025-04-01 14:40 ` Ricardo B. Marli��re via ltp
2025-03-27 21:56 ` [LTP] [PATCH 3/4] include/Makefile: Fix cleaning targets Ricardo B. Marliere via ltp
2025-04-01 7:47 ` Petr Vorel
2025-04-01 14:43 ` Ricardo B. Marli��re via ltp
2025-04-01 19:35 ` Petr Vorel
2025-03-27 21:56 ` [LTP] [PATCH 4/4] configure: Add missing files for removal in ac-maintainer-clean target Ricardo B. Marliere via ltp
2025-04-01 7:58 ` Petr Vorel [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=20250401075856.GF299271@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=rbm@suse.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