changeset 1276:9cf5345d1ef5

8068726: Tab completion of targets fails when current dir is the output dir Reviewed-by: ihse
author erikj
date Fri, 09 Jan 2015 16:45:44 +0100
parents 394de05938d7
children 95cca36ba3e4
files Makefile
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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