mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 13:23:10 +01:00
IDE: build laz: clean all: clean up target directory
git-svn-id: trunk@36450 -
This commit is contained in:
parent
8477a4ae67
commit
5cb07e2b79
@ -244,6 +244,7 @@ var
|
||||
OutputDirRedirected, UpdateRevisionInc: boolean;
|
||||
IdeBuildMode: TIdeBuildMode;
|
||||
CmdLineParams: String;
|
||||
Dir: String;
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
|
||||
@ -303,6 +304,16 @@ begin
|
||||
CleanLazarusSrcDir(WorkingDirectory+PathDelim+'ideintf');
|
||||
CleanLazarusSrcDir(WorkingDirectory+PathDelim+'tools');
|
||||
CleanLazarusSrcDir(WorkingDirectory+PathDelim+'test');
|
||||
|
||||
// clean config directory
|
||||
CleanLazarusSrcDir(GetPrimaryConfigPath+PathDelim+'units');
|
||||
|
||||
// clean custom target directory
|
||||
if Profile.TargetDirectory<>'' then begin
|
||||
Dir:=Profile.GetParsedTargetDirectory(Macros);
|
||||
if (Dir<>'') and DirPathExists(Dir) then
|
||||
CleanLazarusSrcDir(Dir);
|
||||
end;
|
||||
end;
|
||||
|
||||
// call make to clean up
|
||||
|
||||
Loading…
Reference in New Issue
Block a user