on i4PACE(i for Personal Archiving and Creating Environment)
actions » SearchLogin 89 articles • 30 Jul 2010

Article with comments

Wednesday, 05 Mar 2008

permalink Makefile

When I tried to run "make clean" on the snakelet path /var/local/Snakelets-1.44 on Ubuntu 7.10 server, an error occurred. Changing some opitons corrected the problem. Here's a "clean" part of Makefile I use now:

clean:
        @echo "Removing stray logfiles, .pyo/.pyc files..."
        find . -name \*.pyo -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.pyc -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.swp -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*~ -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*_log -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.log -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.log.? -type -print0 | xargs -0 /bin/rm -f
        find . -name \*.log.?? -type f -print0 | xargs -0 /bin/rm -f
        @echo "Removing non-CVS files..."
        rm -fv MANIFEST 
        rm -rf build
        rm -rf logs/server.pid
        find . -name  .#\* -type f -print0 | xargs -0 /bin/rm -f
        @echo "clean!"
• Wrote Teru at 10:53 | read 590× | Add comment

Comments (0)

No comments for this article yet.

Write a comment

Your name  
E-mail   (only visible for blog owner)
Homepage
How much is 9+9?   (protection against spam-bots)
Text:

[b] [i] [u] [tt] [center] [code] [quote] [url] [url=] [img] [@] [@@] [@:]
detailed help about markup
Process times: page=0.010 request=0.025 cpu=0.020