With the Makefile
I'm working on, I convert pdf files into txt files.
I've implemented a clean
target that would remove all .txt files. However, I do not wish to delete the source files, only those that have been generated.
Example: I have following files in my folder:
pdfsource.pdf
and donotharm.txt
Running my makefile would create following file:
pdfsource.txt
For now, my clean
looks like this:
rm -f *.txt
Using make clean
would not only delete pdfsource.txt
, which is desired, but also donotharm.txt
.
I think I could use: .PRECIOUS: donotharm.txt
, but this is really specific. I'd like to have a general solution to this.
Thanks in advance!