diff options
| author | Markus Armbruster | 2019-07-09 16:38:01 +0200 |
|---|---|---|
| committer | Peter Maydell | 2019-07-09 17:17:38 +0200 |
| commit | 8d358a5ea08206a5c800d5a1e1ec9b66b1be975b (patch) | |
| tree | 07d129c93df85da0dc265c9cc9c1d20c69d83dc5 /Makefile | |
| parent | Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190709' into staging (diff) | |
| download | qemu-8d358a5ea08206a5c800d5a1e1ec9b66b1be975b.tar.gz qemu-8d358a5ea08206a5c800d5a1e1ec9b66b1be975b.tar.xz qemu-8d358a5ea08206a5c800d5a1e1ec9b66b1be975b.zip | |
Makefile: Fix "make clean" in "unconfigured" source directory
Recent commit "Makefile: Reuse all's recursion machinery for clean and
install" broke targets clean and distclean in the source directory
before running configure:
$ make clean
LD recurse-clean.mo
cc: fatal error: no input files
compilation terminated.
make: *** [rules.mak:118: recurse-clean.mo] Error 1
Root cause is missing .PHONY. Fix that.
Fixes: 1338a4b72659ce08eacb9de0205fe16202a22d9c
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -518,6 +518,7 @@ ROM_DIRS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROM_DIRS))) $(ROM_DIRS_RULES): $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" CFLAGS="$(filter -O% -g%,$(CFLAGS))" $(notdir $@),) +.PHONY: recurse-all recurse-clean recurse-install recurse-all: $(addsuffix /all, $(TARGET_DIRS) $(ROM_DIRS)) recurse-clean: $(addsuffix /clean, $(TARGET_DIRS) $(ROM_DIRS)) recurse-install: $(addsuffix /install, $(TARGET_DIRS)) |
