Same error. I am unsure how it thought that I had multiple targets (main.exe), but I did a rm -rf build/ and that fixed everything.
rm -rf build/
# Makefile $(BUILD)/main.exe: <dependencies> ./build_main.sh