TARGET=${1}
shift
for SUBDIR in "${@}"; do
run_cmd_in_dir "${SUBDIR}" make "${TARGET}"
run_cmd_in_dir "${SUBDIR}" gmake "${TARGET}"
done