From: Theodore Ts'o Date: Wed, 19 Feb 2025 16:05:00 +0000 (-0500) Subject: make: remove the .extradep file in libxfs on "make clean" X-Git-Tag: v6.14.0~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2d034be62f490af3bb5381930462ad377e24a35;p=thirdparty%2Fxfsprogs-dev.git 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 --- diff --git a/include/buildrules b/include/buildrules index 7a139ff0..6b76abce 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 $*"