Code: Select all
archive.tar: file1.txt file2.txt
tar cvf archive.tar file1.txt file2.txt
2nd problem is that I have directories which go into the tar archive. So I first have to collect all the files which are in the sub-directories and then use this list as dependency for the archive.tar. So I get the same problem as above and the problem that I don´t know how to collect all files of given sub-directories.
Is this possible with a makefile, if not I have to delve into shell programming.