qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* clean after distclean gobbles source files
@ 2023-04-07 15:44 Steven Sistare
  2023-04-13 11:41 ` Thomas Huth
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Sistare @ 2023-04-07 15:44 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini, Alex Bennée, Thomas Huth

Run 'make distclean', and GNUmakefile is removed.
But, GNUmakefile is where we cd to build/.
Run 'make distclean' or 'make clean' again, and Makefile applies
the clean actions, such as this one, at the top level of the tree:

    find . \( -name '*.so' -o -name '*.dll' -o \
          -name '*.[oda]' -o -name '*.gcno' \) -type f \
        ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \
        ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \
        -exec rm {} +

For example, it removes the .d source files in 'meson/test cases/d/*/*.d'.
The damage could be worse in the future if more suffixes are cleaned.

I don't have a suggested fix.  Recursion and the GNUmakefile bootstrap
make it non-trivial.

- Steve


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-19 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07 15:44 clean after distclean gobbles source files Steven Sistare
2023-04-13 11:41 ` Thomas Huth
2023-04-14 15:30   ` Steven Sistare
2023-04-14 15:41     ` Thomas Huth
2023-04-19 13:07       ` Steven Sistare

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 NNTP newsgroup(s).