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.
This commit is contained in:
Nicola Fontana 2021-05-29 16:05:02 +02:00
parent 6d37c445ab
commit 908b93f004
1 changed files with 0 additions and 3 deletions

View File

@ -82,9 +82,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` && \