Earlier quoted context omitted.
GNU Make has a number of implicit rules. A blank target rule (or no target rule) in the Makefile (or no Makefile at all!) will cause `make` to try to create the specified target `foo` from `foo.c` or `foo.cpp` (or others) if they exist. More complete explanation here: https://www.gnu.org/software/make/manual/html_node/Catalogue... Note: I was initially annoyed with parent's "do this and see what happens" post and its…
I appreciate that you edited your comment to make it more informative. Now if you could also remove the snark, it would be a great comment.
You may feel differently. That's fine. But differing opinions being downvoted to oblivion is ... problematic, at best.
EDIT: After reading your response below, you were right and I was wrong. Editing.