diff options
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -106,13 +106,12 @@ KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd) | |||
106 | $(if $(KBUILD_OUTPUT),, \ | 106 | $(if $(KBUILD_OUTPUT),, \ |
107 | $(error output directory "$(saved-output)" does not exist)) | 107 | $(error output directory "$(saved-output)" does not exist)) |
108 | 108 | ||
109 | .PHONY: $(MAKECMDGOALS) cdbuilddir | 109 | .PHONY: $(MAKECMDGOALS) |
110 | $(MAKECMDGOALS) _all: cdbuilddir | ||
111 | 110 | ||
112 | cdbuilddir: | 111 | $(filter-out _all,$(MAKECMDGOALS)) _all: |
113 | $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ | 112 | $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ |
114 | KBUILD_SRC=$(CURDIR) \ | 113 | KBUILD_SRC=$(CURDIR) \ |
115 | KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile $(MAKECMDGOALS) | 114 | KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile $@ |
116 | 115 | ||
117 | # Leave processing to above invocation of make | 116 | # Leave processing to above invocation of make |
118 | skip-makefile := 1 | 117 | skip-makefile := 1 |