3 ms·
Nine times out of ten my Makefile has the sequence app: clean all install ..... ..... ..... That covers most (all?)
by simonblack 5y ago
Nine times out of ten my Makefile has the sequence
app: clean all install
.....
.....
.....
That covers most (all?) eventualities. If the compile can go from a clean set of source files to a fully installed application, I know that it is complete.
During the depths of development I might not include the 'make install' while I'm still getting source-file errors.
The reason for my 'belt and braces' use of 'make clean' is that on odd occasions my Makefiles haven't been as bullet-proof as they should have been and previously compiled object-files being linked in have caused compile errors which didn't actually exist.