Skip to content

Commit

Permalink
Report make location
Browse files Browse the repository at this point in the history
  • Loading branch information
j-woz committed Sep 5, 2024
1 parent 8611632 commit 59efcde
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dev/build/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ assert()
}

LOG()
# Usage: LOG $LVL MESSAGE...
{
if (( ${#} == 0 ))
then
Expand Down Expand Up @@ -125,6 +126,11 @@ check_make()
MAKE_QUIET="--quiet"
fi

if (( VERBOSITY <= $LOG_DEBUG ))
then
echo "using make: " $( which make )
fi

MAKE_V=""
if (( VERBOSITY == $LOG_TRACE ))
then
Expand All @@ -136,9 +142,12 @@ make_clean()
{
if (( RUN_MAKE_CLEAN ))
then
if [ -f Makefile ]
if [[ -f Makefile ]]
then
LOG $LOG_DEBUG "make_clean() ..."
make clean
else
LOG $LOG_DEBUG "make_clean(): No Makefile."
fi
fi
}
Expand Down

0 comments on commit 59efcde

Please sign in to comment.