bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: Issue with VPN


From: Dmitry Goncharov
Subject: Re: AW: Issue with VPN
Date: Tue, 12 Jan 2021 10:20:39 -0500

> 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

[Prev in Thread] Current Thread [Next in Thread]