I try to imitate in a Windows batch file the behavior of make
:
if file.obj is-older-than file.c compile file.c
How to express this in a batch file? I only know
if not exist file.obj compile file.c
which is not the same.
EDIT: This question already has an answer: A similar question has been asked, with the best answer (in my view) being in a comment on this answer.