Skip to content

Commit

Permalink
Add tools for finding make errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Garrett Cooper <[email protected]>
  • Loading branch information
Garrett Cooper committed Dec 19, 2010
1 parent 56abfc3 commit 14f5489
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tools/build/find_all_make_errors.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/include/mk/generic_trunk_target.inc b/include/mk/generic_trunk_target.inc
index 7ffb9e9..c81b9b4 100644
--- a/include/mk/generic_trunk_target.inc
+++ b/include/mk/generic_trunk_target.inc
@@ -75,7 +75,8 @@ trunk-install: $(INSTALL_FILES)
all: trunk-all

clean:: trunk-clean
- set -e; for dir in $(SUBDIRS); do \
+ #@set -e; for dir in $(SUBDIRS); do
+ for dir in $(SUBDIRS); do \
$(MAKE) -C "$$dir" -f "$(abs_srcdir)/$$dir/Makefile" $@; \
done
ifneq ($(abs_builddir),$(abs_srcdir))
@@ -90,7 +91,8 @@ ifeq ($(strip $(SUBDIRS)),)
$(error SUBDIRS empty -- did you want generic_leaf_target instead?)
else
$(RECURSIVE_TARGETS): %: | $(SUBDIRS)
- @set -e; for dir in $(SUBDIRS); do \
+ #@set -e; for dir in $(SUBDIRS); do
+ @for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir -f "$(abs_srcdir)/$$dir/Makefile" $@; \
done
endif
11 changes: 11 additions & 0 deletions tools/build/find_make_errors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

MAKE=${MAKE:=gmake}

$MAKE -k clean
$MAKE -k all >make-errors 2>&1

grep ' error: ' make-errors | cut -f 1 -d : | sort -u | \
while read f; do
find . -name $f -type f
done > make-errors-files-only

0 comments on commit 14f5489

Please sign in to comment.