> Question. Is there a change to optimize the function cp and rm?

In bash (in recipe lines) you can replace cp with
echo "$(<src)" >dst

in make you can replace cp with
$(file >dst,$(file <src))

When i write a makefile for a lib which installs multiple header files
i like using rsync over install or cp.
This relieves make from having to check the timestamp of each header
file in order to decide whether to copy it.
rsync does the check and avoids unnecessary copy and works fast.


regards, Dmitry

Reply via email to