]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
make: remove the .extradep file in libxfs on "make clean"
authorTheodore Ts'o <tytso@mit.edu>
Wed, 19 Feb 2025 16:05:00 +0000 (11:05 -0500)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 31 Mar 2025 08:03:25 +0000 (10:03 +0200)
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 <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
include/buildrules

index 7a139ff07de8e1e75bf8b3b789f4590701a116c0..6b76abced9ed0c2939aa5d75b93532c8b029fe96 100644 (file)
@@ -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 $*"