Merge branch 'cherry-pick-dde91be4' into 'master'

Merge branch 'fix-make-clean' into 'stable-1.5'

See merge request etherlab.org/ethercat!31
This commit is contained in:
Florian Pose 2021-08-24 16:16:40 +00:00
commit 9bde5b2106
1 changed files with 7 additions and 8 deletions

View File

@ -13,15 +13,14 @@ modules_install:
$(KBUILD) modules_install
# Call Kbuild clean *before* automake `clean` (see #5 for the rationale)
# by adding `kbuild-clean` to the clean prerequisites. Having targets
# with the same name will result in merging the prerequisites, i.e.:
# ```
# # Equivalent to 'clean: prerequisite1 prerequisite2'
# clean: prerequisite1
# clean: prerequisite2
# ```
# Override default `clean` target to call Kbuild clean *before* automake
# `clean` (see #5 for the rationale).
clean: kbuild-clean
@if test -z "$(SUBDIRS)"; then \
$(MAKE) $(AM_MAKEFLAGS) clean-am ; \
else \
$(MAKE) $(AM_MAKEFLAGS) clean-recursive ; \
fi
kbuild-clean:
$(KBUILD) clean