Skip to content

Commit 8ad9ecb

Browse files
committed
Support GNUmakefile.
1 parent 36b3a12 commit 8ad9ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pbuilder-hooks/B10test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ find_top_makefile() {
1212
echo obj-x86_64-linux-gnu/Makefile
1313
return
1414
fi
15-
for makefile in $(find -name '[Mm]akefile'); do
15+
for makefile in $(find -name '[Mm]akefile' -o -name GNUmakefile); do
1616
depth=$(echo $makefile | grep -o / | wc -l)
1717
echo $makefile $depth
1818
done | sort -nk2 | head -1 | awk '{print $1}'
@@ -39,7 +39,7 @@ try_build_goals() {
3939
try_build_subdirs() {
4040
for subdir in test tests testsuite example examples; do
4141
for g in $@; do
42-
if (test -d $subdir && test -f $subdir/Makefile -o -f $subdir/makefile && cd $subdir && try_build_goal $g); then
42+
if (test -d $subdir && test -f $subdir/Makefile -o -f $subdir/makefile -o -f $subdir/GNUmakefile && cd $subdir && try_build_goal $g); then
4343
return 0
4444
fi
4545
done

0 commit comments

Comments
 (0)