LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   configure automake to remove *.dat and *.log (https://www.linuxquestions.org/questions/linux-software-2/configure-automake-to-remove-%2A-dat-and-%2A-log-4175523729/)

MrUmunhum 10-29-2014 05:10 PM

configure automake to remove *.dat and *.log
 
Hi group,
I am using automake to support a project using C source code and I want to add a new clean up script to the Makefiles generated by automake. The new code would remove all files ending with a '.dat' and '.log'. The addition should look something like this:
Code:

find .. -type f -name  \*.log -or -name \*.dat -or -name \*~ -exec rm {} \;
Can someone point me to an example web page that will shoe me how to add this function to the generated Makefiles? Or the magic strings to search Google.

Thanks for your time.

MrUmunhum 10-29-2014 05:30 PM

OK, I figured it out. I added this to the makefile.am.
Code:

clearlog:
        find src -type f -name  \*.log -or -name \*.dat -or -name \*~ -exec rm -f {} \;



All times are GMT -5. The time now is 07:02 PM.