From 802a4fc57b502465aff0c563734b3daee5fee504 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sat, 29 May 2021 16:05:02 +0200 Subject: [PATCH] Fix #5: call Kbuild clean only where needed The problem is both automake and kbuild recurse into subdirectories. In `make distcheck`, automake cleans its `SUBDIRS` and only then tries to clean the toplevel one. This in turn will trigger a kbuild clean that will try to recurse into its own (now empty) subdirectories. Avoid this issue by removing Kbuild clean from the toplevel. --- Makefile.am | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index e7e9272d..5086e632 100644 --- a/Makefile.am +++ b/Makefile.am @@ -74,9 +74,6 @@ modules_install: $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \ INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install -clean-local: - $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean - mydist: git -C $(srcdir) log > ChangeLog @REV=`git -C $(srcdir) describe` && \