Re: Makefile help

2021-07-23 Thread Anssi Saari
Charles Curley writes: > It probably is, but I would not use make. A script which used find > would do as well without make's idiosyncrasies. Pretty much any > scripting language should do the job, so use one you are familiar with. Since he said there are a lot of files to convert I thought

Re: Makefile help

2021-07-23 Thread Charles Curley
On Fri, 23 Jul 2021 16:10:10 +0200 Grzesiek wrote: > Is it possible to do it using make in a fully automatic way? What I > mean is that make should find all sub-directories and files in > source_dir by itself. Note that the sub-directories level may be > grater than 1, no symlinks allowed. It

Re: Makefile help

2021-07-23 Thread Teemu Likonen
* 2021-07-23 16:10:10+0200, Grzesiek wrote: > Is it possible to do it using make in a fully automatic way? What I > mean is that make should find all sub-directories and files in > source_dir by itself. "make" doesn't find files. You can use "find" in a Makefile to find all necessary files and

Re: Makefile help

2021-07-23 Thread Greg Wooledge
On Fri, Jul 23, 2021 at 04:10:10PM +0200, Grzesiek wrote: > I have two directories: source_dir and dest_dir. In the directory source_dir > I have number of sub-directories and files. My goal is: > > 1.Recreate the sub-directory structure of the source_dir inside of the > dest_dir > > 2. Each

Re: Makefile help

2021-07-23 Thread Klaus Singvogel
Grzesiek wrote: > > 1.Recreate the sub-directory structure of the source_dir inside of the > dest_dir > > 2. Each file found in source_dir should be converted to a new format using > some command CMD in the following way: > CMD source_dir//.src dest_dir// name>.dst It's not common practice to

Re: Makefile help

2021-07-23 Thread Grzesiek
On 7/23/21 4:25 PM, john doe wrote: On 7/23/2021 4:10 PM, Grzesiek wrote: I do not have experience in writing Makefiles. Appropriate Makefile examples appreciated. Why do you need to use make? As far as I understand your question, you are not concernde about the 'mtime'. The number of

Re: Makefile help

2021-07-23 Thread john doe
On 7/23/2021 4:10 PM, Grzesiek wrote: I do not have experience in writing Makefiles. Appropriate Makefile examples appreciated. Why do you need to use make? As far as I understand your question, you are not concernde about the 'mtime'. -- John Doe

Makefile help

2021-07-23 Thread Grzesiek
Hi there! I have two directories: source_dir and dest_dir. In the directory source_dir I have number of sub-directories and files. My goal is: 1.Recreate the sub-directory structure of the source_dir inside of the dest_dir 2. Each file found in source_dir should be converted to a new