[Lazarus] make clean is leaving more than 20MB stuff behind (this number is after compression!)

Bernd prof7bit at gmail.com
Mon Oct 8 12:46:34 CEST 2012

2012/10/8 Graeme Geldenhuys <graeme at geldenhuys.co.uk>:

> My point is, a simple 'find ...' command will not clean out all
> non-repository files. You need something a bit more intelligent like
> 'git clean'.

git-clean is also only a workaround, its just using the information it
knows about which files are version controlled and which are not (and
I can only use it on my local machine, not inside a build script on
sources that are uploaded to launchpad). Ideally the clean target of
each makefile in each directory should exactly know which files (and
which folders) could have been created and rm -rf them.

I'm going to make a diff to see what exactly is left behind (which
makefiles are broken) but not today (and also not tomorrow). Until
then I think I use the recursive find method as a quick & dirty hack
just to get the sheer file size down before uploading to launchpad
(Currently I'm mostly worried about file size because I have slow
ADSL, not so much about empty directories).

More information about the Lazarus mailing list