LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2014, 05:10 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
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.
 
Old 10-29-2014, 05:30 PM   #2
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
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 {} \;
 
  


Reply

Tags
automake makefile.am


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aclocal,autoconf,automake,configure.in,make,makepp,gcc,cc, what are all these amolgupta Programming 2 12-27-2008 12:57 PM
autoconf, automake installation issues with ./configure brn_rh Linux - Newbie 1 10-22-2007 05:46 PM
configure (automake) conditionals kev000 Programming 0 07-15-2007 12:25 PM
how to remove xpti.dat JAVNKIM Linux - Software 1 05-18-2007 08:59 PM
xpi.dat remove after flash install telzey Fedora 0 08-20-2006 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration