[Top][All Lists]

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

make similar to rsync -r -t --del

From: Warlich, Christof
Subject: make similar to rsync -r -t --del
Date: Wed, 4 Jan 2012 16:24:06 +0100


using rsync, it is rather simple to synchronize two directories:

$ rsync -r -t --del sourcedir/ destdir

In this example, if a file is deleted fron sourcedir, it also gets deleted from 
Any other files are updated as needed.

I want to accomplish almost the same with Make, but instead of just copying, I 
to process any source file (each in the same way) to become the corresponding
destination file (which is why rsync cannot be used).

The difficulty arises when a file is deleted from sourcedir: An ordinary 
would just leave the corresponding (now obsolete) file being there from a 
run of Make in destdir.

As this problem does not seem too special to me, I wonder if anyone knows a
good generic solution?

Thanks for any help,


reply via email to

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