8068726: Tab completion of targets fails when current dir is the output dir
Reviewed-by: ihse
--- 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