]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Backport method of setting SUBMAKE from trunk.
authorRussell Bryant <russell@russellbryant.com>
Mon, 28 Jun 2010 15:58:48 +0000 (15:58 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 28 Jun 2010 15:58:48 +0000 (15:58 +0000)
By setting the PRINT_DIR variable, SUBMAKE will print out the directories it
descends into, which is important for editors (like vim) that watch the build
output so that they can take you to the file where an error occurred.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272688 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 6a6eae5d788a1b489d6763cb688533c66dc98166..28e9e51cfd1eab3390de5d5e6c82b9199d8872f0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -293,7 +293,11 @@ ifeq ($(OSARCH),SunOS)
   SOLINK=-shared -fpic -L/usr/local/ssl/lib -lrt
 endif
 
-SUBMAKE=$(MAKE) --quiet --no-print-directory
+ifneq ($(PRINT_DIR)$(NOISY_BUILD),)
+SUBMAKE:=$(MAKE)
+else
+SUBMAKE:=$(MAKE) --quiet --no-print-directory
+endif
 
 # This is used when generating the doxygen documentation
 ifneq ($(DOT),:)