From d2d034be62f490af3bb5381930462ad377e24a35 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 19 Feb 2025 11:05:00 -0500 Subject: [PATCH] make: remove the .extradep file in libxfs on "make clean" Commit 6e1d3517d108 ("libxfs: test compiling public headers with a C++ compiler") will create the .extradep file. This can cause future builds to fail if the header files in $(DESTDIR) no longer exist. Fix this by removing .extradep (along with files like .ltdep) on a "make clean". Fixes: 6e1d3517d108 ("libxfs: test compiling public headers with a C++ compiler") Signed-off-by: Theodore Ts'o Reviewed-by: Darrick J. Wong Reviewed-by: Carlos Maiolino --- include/buildrules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/buildrules b/include/buildrules index 7a139ff07..6b76abced 100644 --- a/include/buildrules +++ b/include/buildrules @@ -7,7 +7,7 @@ _BUILDRULES_INCLUDED_ = 1 include $(TOPDIR)/include/builddefs clean clobber : $(addsuffix -clean,$(SUBDIRS)) - @rm -f $(DIRT) .ltdep .dep + @rm -f $(DIRT) .ltdep .dep .extradep @rm -fr $(DIRDIRT) %-clean: @echo "Cleaning $*" -- 2.50.1