3 ms·
Makefile just checks whether a file exists, nothing more. if [[ -f myfile ]]; then
by deepsun 5y ago
Makefile just checks whether a file exists, nothing more.
if [[ -f myfile ]]; then
- Izkata 5y agoIt also compares the last-modified timestamps of the source and target files so it only runs if the target is out of date. Plus because the dependencies are explicit, it's trivial to run in parallel the parts that can be.
- deepsun 5y agoThanks, didn't know about timestamps. But it's trivial to run shell scripts in parallel as well, just add ` &` at the end.