Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.5.40 /Rules.make

Filename:/Rules.make
Lines Added:8
Lines Deleted:1
Also changed in: (Previous) 2.5.35  2.5.30  2.5.25  2.5.24  2.5.23  2.5.22 
(Following) 2.5.40-ac1  2.5.40-ac2  2.5.40-ac3  2.5.40-ac4  2.5.40-ac5  2.5.40-ac6 

Location
[  2.5.40
   o  Rules.make

Patch

diff -Nru a/Rules.make b/Rules.make
--- a/Rules.make   Tue Oct  1 00:08:16 2002
+++ b/Rules.make   Tue Oct  1 00:08:16 2002
@@ -517,6 +517,13 @@
   include $(cmd_files)
 endif
 
+# Emacs compile mode works best with relative paths to find files (OK
+# if verbose, as it tracks the make[1] entries and exits, etc.)
+
+ifneq ($(KBUILD_VERBOSE),1)
+  filter-output = 2>&1 | sed 's \(^[^/][A-Za-z0-9_./-]*:[ 0-9]\) $(RELDIR)/\1 '
+endif
+
 # function to only execute the passed command if necessary
 
 if_changed = $(if $(strip $? \
@@ -536,7 +543,7 @@
            $(filter-out $(cmd_$@),$(cmd_$(1)))),\
    @set -e; \
    $(if $($(quiet)cmd_$(1)),echo '  $($(quiet)cmd_$(1))';) \
-   $(cmd_$(1)); \
+   $(cmd_$(1)) $(filter-output); \
    $(TOPDIR)/scripts/fixdep $(depfile) $@ $(TOPDIR) '$(cmd_$(1))' > $(@D)/.$(@F).tmp; \
    rm -f $(depfile); \
    mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.