When compiling in an Emacs-spawned shell, always print directory names.
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 16 Jun 2009 20:50:41 +0000 (20:50 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 16 Jun 2009 20:50:41 +0000 (20:50 +0000)
This change ensures that Emacs can find the proper source files when parsing
compiler error messages, since it uses the 'make' output including directory
names to do it.

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

Makefile

index 0632039..dd4ab60 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -327,6 +327,10 @@ endif
 # comment to print directories during submakes
 #PRINT_DIR=yes
 
+ifneq ($(INSIDE_EMACS),)
+PRINT_DIR=yes
+endif
+
 SILENTMAKE:=$(MAKE) --quiet --no-print-directory
 ifneq ($(PRINT_DIR)$(NOISY_BUILD),)
 SUBMAKE:=$(MAKE)