From a96727e01d74fdeb98397b655215b264176ff3ef Mon Sep 17 00:00:00 2001 From: Erik Joelsson Date: Fri, 9 Jan 2015 16:45:44 +0100 Subject: [PATCH] 8068726: Tab completion of targets fails when current dir is the output dir Reviewed-by: ihse --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1eff79b2194..0814d3867c6 100644 --- a/Makefile +++ b/Makefile @@ -54,8 +54,11 @@ ifneq ($(findstring qp,$(MAKEFLAGS)),) # Duplication of global targets, needed before ParseConfAndSpec in case we have # no configurations. help: - # If CONF is not set, look for all available configurations - CONF?= + # If both CONF and SPEC are unset, look for all available configurations by + # setting CONF to the empty string. + ifeq ($(SPEC), ) + CONF?= + endif endif # ... and then we can include our helper functions