diff options
-rw-r--r-- | scripts/mkmakefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index c4d621b30d0d..a22cbedd3b3e 100644 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile | |||
@@ -21,11 +21,13 @@ KERNELOUTPUT := $2 | |||
21 | 21 | ||
22 | MAKEFLAGS += --no-print-directory | 22 | MAKEFLAGS += --no-print-directory |
23 | 23 | ||
24 | .PHONY: all \$(MAKECMDGOALS) | ||
25 | |||
24 | all: | 26 | all: |
25 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) | 27 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) |
26 | 28 | ||
27 | %:: | 29 | Makefile:; |
28 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ | ||
29 | 30 | ||
31 | \$(filter-out all Makefile,\$(MAKECMDGOALS)) %/: | ||
32 | \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ | ||
30 | EOF | 33 | EOF |
31 | |||