Overview
Features
Download
Documentation
Community
Add-Ons & Services

cleaning up : make clean

A general discussion forum.

cleaning up : make clean

Postby killerbot » 19 Dec 2010, 12:50

I was playing around with different build possibilities on my linux box (static versus dynamic) and noticed that make clean is not cleaning correctly.

Some things I noticed (only ./configure and make [no make install]) :

1)for both static and dynamic build
* make builds CppUnit
* make clean does NOT clean it
* created directories are not removed : the obj and bin directories for example : all the object files were removed by the clean, but the directories are not , for example i have several leftovers like this : obj/Linux bin/Linux/x86_64

It would be nice everything gets nicely cleaned ;-)

2) dynamic builds
* the symbolic links are not removed

Here's a directory listing of for example the lib directory : lib/Linux/x86_64

After make :
Code: Select all
lrwxrwxrwx 1 killerbot users       16 2010-12-18 16:40 libCppUnitd.so -> libCppUnitd.so.1
-rwxr-xr-x 1 killerbot users   599080 2010-12-18 16:40 libCppUnitd.so.1
lrwxrwxrwx 1 killerbot users       15 2010-12-18 16:40 libCppUnit.so -> libCppUnit.so.1
-rwxr-xr-x 1 killerbot users    56360 2010-12-18 16:40 libCppUnit.so.1
lrwxrwxrwx 1 killerbot users       24 2010-12-18 16:34 libPocoFoundationd.so -> libPocoFoundationd.so.10
-rwxr-xr-x 1 killerbot users 12211273 2010-12-18 16:34 libPocoFoundationd.so.10
lrwxrwxrwx 1 killerbot users       23 2010-12-18 16:36 libPocoFoundation.so -> libPocoFoundation.so.10
-rwxr-xr-x 1 killerbot users  1750936 2010-12-18 16:36 libPocoFoundation.so.10
lrwxrwxrwx 1 killerbot users       17 2010-12-18 16:39 libPocoNetd.so -> libPocoNetd.so.10
-rwxr-xr-x 1 killerbot users  7698742 2010-12-18 16:39 libPocoNetd.so.10
lrwxrwxrwx 1 killerbot users       16 2010-12-18 16:40 libPocoNet.so -> libPocoNet.so.10
-rwxr-xr-x 1 killerbot users  1047072 2010-12-18 16:40 libPocoNet.so.10
lrwxrwxrwx 1 killerbot users       18 2010-12-18 16:38 libPocoUtild.so -> libPocoUtild.so.10
-rwxr-xr-x 1 killerbot users  3864958 2010-12-18 16:38 libPocoUtild.so.10
lrwxrwxrwx 1 killerbot users       17 2010-12-18 16:38 libPocoUtil.so -> libPocoUtil.so.10
-rwxr-xr-x 1 killerbot users   376000 2010-12-18 16:38 libPocoUtil.so.10
lrwxrwxrwx 1 killerbot users       17 2010-12-18 16:37 libPocoXMLd.so -> libPocoXMLd.so.10
-rwxr-xr-x 1 killerbot users  4941402 2010-12-18 16:37 libPocoXMLd.so.10
lrwxrwxrwx 1 killerbot users       16 2010-12-18 16:37 libPocoXML.so -> libPocoXML.so.10
-rwxr-xr-x 1 killerbot users   632552 2010-12-18 16:37 libPocoXML.so.10


After make clean :
Code: Select all
lrwxrwxrwx 1 killerbot users     16 2010-12-18 16:40 libCppUnitd.so -> libCppUnitd.so.1
-rwxr-xr-x 1 killerbot users 599080 2010-12-18 16:40 libCppUnitd.so.1
lrwxrwxrwx 1 killerbot users     15 2010-12-18 16:40 libCppUnit.so -> libCppUnit.so.1
-rwxr-xr-x 1 killerbot users  56360 2010-12-18 16:40 libCppUnit.so.1
lrwxrwxrwx 1 killerbot users     24 2010-12-18 16:34 libPocoFoundationd.so -> libPocoFoundationd.so.10
lrwxrwxrwx 1 killerbot users     23 2010-12-18 16:36 libPocoFoundation.so -> libPocoFoundation.so.10
lrwxrwxrwx 1 killerbot users     17 2010-12-18 16:39 libPocoNetd.so -> libPocoNetd.so.10
lrwxrwxrwx 1 killerbot users     16 2010-12-18 16:40 libPocoNet.so -> libPocoNet.so.10
lrwxrwxrwx 1 killerbot users     18 2010-12-18 16:38 libPocoUtild.so -> libPocoUtild.so.10
lrwxrwxrwx 1 killerbot users     17 2010-12-18 16:38 libPocoUtil.so -> libPocoUtil.so.10
lrwxrwxrwx 1 killerbot users     17 2010-12-18 16:37 libPocoXMLd.so -> libPocoXMLd.so.10
lrwxrwxrwx 1 killerbot users     16 2010-12-18 16:37 libPocoXML.so -> libPocoXML.so.10


I hope this can be taken into account for a next version.

By the way, POCO won't get removed on my system, it too darn good :-)
But we like it clean :-)
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55

Re: cleaning up : make clean

Postby guenter » 30 Dec 2010, 11:25

guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: cleaning up : make clean

Postby killerbot » 05 Feb 2011, 09:58

I can confirm that in 1.4.1 the cleaning of the cppunit and the symbolic links are now nicely cleaned up.

However a bunch of empty directories still remain, and are not cleaned.

Code: Select all
==> leftovers :
  lib/Linux/x86_64
  Foundation/obj/Linux
  Foundation/testsuite/obj/Linux
  Foundation/testsuite/bin/Linux/x86_64
  Net/obj/Linux
  Net/testsuite/obj/Linux
  Net/testsuite/bin/Linux/x86_64
  Util/obj/Linux
  Util/testsuite/obj/Linux
  Util/testsuite/bin/Linux/x86_64
  XML/obj/Linux
  XML/testsuite/obj/Linux
  XML/testsuite/bin/Linux/x86_64
  CppUnit/obj/Linux

and also for all the samples : an example
  Net/samples/dict/bin/Linux/x86_64
  Net/samples/dict/obj/Linux
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55

Re: cleaning up : make clean

Postby guenter » 05 Feb 2011, 10:56

try make distclean
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: cleaning up : make clean

Postby raulgd » 13 Mar 2011, 21:08

That's the same for me in windows, I'm using both VS2008 and VS2010, and if try to do a clean, of course it gets cleaned, it removes the compiled libs and every thing :lol:
Is there a way I can do a clean of the obj, ilk, pdb etc? something that on the Qt world would be like nmake confclean?
raulgd
 
Posts: 19
Joined: 11 Mar 2011, 03:35
Location: Mexico


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron