Makefile: don't try to report on distclean

...and on other direct non-build actions like clean or help.
How could this stay overlooked for so long?
This commit is contained in:
Michael Shigorin 2013-06-18 00:36:55 +04:00
parent 802ea74da8
commit 969d1eb6b2

View File

@ -29,8 +29,10 @@ MAKE += -r --no-print-directory
DIRECT_TARGETS := help help/distro help/ve help/vm clean distclean check
.PHONY: $(DIRECT_TARGETS)
# these build nothing so no use of reports either
$(DIRECT_TARGETS):
@$(MAKE) -f main.mk $@
@$(MAKE) -f main.mk REPORT= $@
export NUM_TARGETS := $(words $(MAKECMDGOALS))