diff --git a/scripts/mkmakefile b/scripts/mkmakefile index c4d621b30d0d..a22cbedd3b3e 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -21,11 +21,13 @@ KERNELOUTPUT := $2 MAKEFLAGS += --no-print-directory +.PHONY: all \$(MAKECMDGOALS) + all: \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) -%:: +Makefile:; + +\$(filter-out all Makefile,\$(MAKECMDGOALS)) %/: \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ - EOF -