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

Graeme Geldenhuys graeme at geldenhuys.co.uk
Mon Oct 8 13:24:26 CEST 2012


On 2012-10-08 11:46, Bernd wrote:
> 
> git-clean is also only a workaround, its just using the information it

Hardly a work-around. It's a standard git command that's been around for
ages. git-clean queries the [local] repository to know exactly what
files are version controlled. It then also looks at the .gitignore and
.git/info/exclude files to see what was your preference of ignored
files. It can also look at the parameters you gave it, for even more
control, and what to do about unversioned directories.

> 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.

Makefiles are pretty terrible. If you get an update before you did a
'make clean', then the update could have deleted source code units,
remove makefiles etc. So afterwards your Makefiles are inconsistent with
what you had before. So 'make clean' will not know about earlier files
and directories. This is a common problem often raised here in this
mailing list.

I think your quickest, and cleanest solution is to simply do a 'svn
export', then archive that exported directory for upload to launchpad.
Or use 'git archive' (no need for git-clean) if you are using the git
mirrors.

Regards,
  - Graeme -





More information about the Lazarus mailing list