Skip to content

Commit 59efcde

Browse files
committed
Report make location
1 parent 8611632 commit 59efcde

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dev/build/functions.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ assert()
2626
}
2727

2828
LOG()
29+
# Usage: LOG $LVL MESSAGE...
2930
{
3031
if (( ${#} == 0 ))
3132
then
@@ -125,6 +126,11 @@ check_make()
125126
MAKE_QUIET="--quiet"
126127
fi
127128

129+
if (( VERBOSITY <= $LOG_DEBUG ))
130+
then
131+
echo "using make: " $( which make )
132+
fi
133+
128134
MAKE_V=""
129135
if (( VERBOSITY == $LOG_TRACE ))
130136
then
@@ -136,9 +142,12 @@ make_clean()
136142
{
137143
if (( RUN_MAKE_CLEAN ))
138144
then
139-
if [ -f Makefile ]
145+
if [[ -f Makefile ]]
140146
then
147+
LOG $LOG_DEBUG "make_clean() ..."
141148
make clean
149+
else
150+
LOG $LOG_DEBUG "make_clean(): No Makefile."
142151
fi
143152
fi
144153
}

0 commit comments

Comments
 (0)