[LTP] [PATCH 0/4] configure: Tidy up removal of generated artifacts

rbm@suse.com rbm@suse.com
Thu Mar 27 22:56:33 CET 2025


Hello folks,

The goal of this series is to fix the top-level `make maintainer-clean` [1]
so that it removes everything the build system generated. The motivation is
that I was using `git clean -fdx` instead of -fdX and inevitably lost some
work, then I realized the cleaning targets were not actually cleaning
everything, e.g.:

(master)
$ make autotools
$ ./configure
$ make maintainer-clean
$ git clean -fdx
Removing aclocal.m4
Removing compile
Removing config.guess
Removing config.sub
Removing configure
Removing include/config.h.in
Removing include/lapi/syscalls.h
Removing include/mk/config-openposix.mk
Removing install-sh
Removing m4/Makefile.in
Removing missing
Removing testcases/open_posix_testsuite/autom4te.cache/
Removing testcases/open_posix_testsuite/configure

So, with this series applied then `git clean -fdx` won't have anything left
to remove.

Please consider pulling,
-	Ricardo.

[1]: https://www.gnu.org/prep/standards/html_node/Standard-Targets.html

Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
Ricardo B. Marlière (4):
      configure: Add missing include/mk/config-openposix.mk reference
      openposix: Makefile: Add the standard "maintainer-clean" target
      include/Makefile: Fix cleaning targets
      configure: Add missing files for removal in ac-maintainer-clean target

 configure.ac                            |  2 ++
 include/Makefile                        |  4 ++--
 include/mk/automake.mk                  | 11 ++++++-----
 testcases/open_posix_testsuite/Makefile | 10 +++++++++-
 4 files changed, 19 insertions(+), 8 deletions(-)
---
base-commit: e3aef569f0d0e7079bdb646965afaf419035eaa5
change-id: 20250327-fix_make_clean-8e57ffe1ce2c

Best regards,
-- 
Ricardo B. Marlière <rbm@suse.com>



More information about the ltp mailing list