Rename DebugMake variable to DEBUGMAKE for consistency (variables that are designed to be overridden), and use VERBOSE=1 instead of VERBOSE!="" for controlling verbosity.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@93712 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/make/config.mk b/make/config.mk
index f0663aa..4851191 100644
--- a/make/config.mk
+++ b/make/config.mk
@@ -65,11 +65,14 @@
LIPO := lipo
CP := cp
+VERBOSE := 0
+DEBUGMAKE := 0
+
###
# Automatic and derived variables.
# Adjust settings for verbose mode
-ifndef VERBOSE
+ifneq ($(VERBOSE),1)
Verb := @
else
Verb :=
diff --git a/make/subdir.mk b/make/subdir.mk
index 1fe4273..81e2958 100644
--- a/make/subdir.mk
+++ b/make/subdir.mk
@@ -4,7 +4,7 @@
$(error "No Dir variable defined.")
endif
-ifeq ($(DebugMake),1)
+ifeq ($(DEBUGMAKE),1)
$(info MAKE: $(Dir): Processing subdirectory)
endif
@@ -39,7 +39,7 @@
SubDirsList := $(SubDirs:%=$(Dir)/%)
ifeq ($(SubDirsList),)
else
- ifeq ($(DebugMake),1)
+ ifeq ($(DEBUGMAKE),1)
$(info MAKE: Descending into subdirs: $(SubDirsList))
endif
$(foreach subdir,$(SubDirsList),$(eval include $(subdir)/Makefile.mk))