diff --git a/Makefile b/Makefile index 483686489806c7e54017714a19489f33ecccea8d..5570f2a6138fd7acc085347864561b132b3ee302 100644 --- a/Makefile +++ b/Makefile @@ -1761,11 +1761,9 @@ tools/%: FORCE ifdef single-build -single-all := $(filter $(single-targets), $(MAKECMDGOALS)) - # .ko is special because modpost is needed -single-ko := $(sort $(filter %.ko, $(single-all))) -single-no-ko := $(sort $(patsubst %.ko,%.mod, $(single-all))) +single-ko := $(sort $(filter %.ko, $(MAKECMDGOALS))) +single-no-ko := $(sort $(patsubst %.ko,%.mod, $(MAKECMDGOALS))) $(single-ko): single_modpost @: