3 ms·
Not sure if it’s a common pattern, but my solution to this was to always run a command that deletes all “unexpected” files, using GNU Make’s “shell” function to
by schemescape 3y ago
Not sure if it’s a common pattern, but my solution to this was to always run a command that deletes all “unexpected” files, using GNU Make’s “shell” function to enumerate files and the “filter-out” function to filter out “expected” outputs. Edit: I ensure this runs every time using an ugly hack: running the command as part of variable expansion via the “shell” function.
Edit to link my Makefile: https://github.com/jaredkrinke/make-blog/blob/main/Makefile https://github.com/jaredkrinke/make-blog/blob/main/Makefile