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 format
using some command CMD in the following way:
CMD source_dir/<path to file>/<file name>.src dest_dir/<path to
file>/<file name>.dst
So, if source_dir contains:
source_dir
+sub1
| +file1.src
| +file2.src
|
+file3.src
+file4.src
In the dest_dir I would like to obtain:
dest_dir
+sub1
| +file1.dst
| +file2.dst
|
+file3.dst
+file4.dst
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.
I do not have experience in writing Makefiles. Appropriate Makefile
examples appreciated.
--
Thanks in advance for any help.
Greg