At the end of my build, make deletes a file:
Removing intermediate files...
rm some/dir/myfile.inc
I want to keep it to make later builds faster, but I have not been able to. Either one of these two lines should force make to keep all intermediate files, as in this question, but they have no effect:
.SECONDARY:
.PRECIOUS:
If I spell out the exact file path it does keep the file:
.SECONDARY: some/dir/myfile.inc
If but this does not work
.SECONDARY: %.inc
Is the .SECONDARY
rules being ignored because of a later rule like this is more specific?
%foo.o %foo.h %foo.inc: some_other_file
dosomething