News for hackers. Stuff that matters.
Re:Using Make – writing less Makefile by dataangel on Tuesday December 26, 2023 @03:47PM (#38775892)
Globbing is how you avoid pointless busy work. If there's a file in the directory that shouldn't be built, it shouldn't be there.
Re:Using Make – writing less Makefile by adrian_b on Tuesday December 26, 2023 @04:59PM (#38776548)
When you want to exclude a file from compilation without deleting it, it is enough to change its extension, e.g. from ".c" to ".c_".

Alternatively, you could move such a file to a subdirectory "Attic" or the like.

Any of these solutions would ensure that globbing will no longer include that file in the list of source files, without needing to update any project configuration files.

Re:Using Make – writing less Makefile by Brian_K_White on Tuesday December 26, 2023 @09:43PM (#38778516)
And nothing that shouldn't happen ever does. I guess you also include "." in $PATH, even roots.