8068726: Tab completion of targets fails when current dir is the output dir
authorerikj
Fri, 09 Jan 2015 16:45:44 +0100
changeset 28286 02d8f96d7c92
parent 28285 3b8c4ccbb332
child 28287 d031becc9e35
8068726: Tab completion of targets fails when current dir is the output dir Reviewed-by: ihse
Makefile
--- a/Makefile	Fri Jan 09 16:45:39 2015 +0100
+++ b/Makefile	Fri Jan 09 16:45:44 2015 +0100
@@ -54,8 +54,11 @@
   # 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