[haiku-development] Re: Cross-compiling Haiku with jam: how to make clean?

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 11 Aug 2017 22:43:06 +0200

On Fri, Aug 11, 2017 at 08:23:34PM +0000, Thomas Mueller wrote:


from Adrien Destugues:

11 août 2017 15:12 "Thomas Mueller" <mueller6723@xxxxxxx> a écrit:

When cross-compiling Haiku from FreeBSD, after the cross-tools have been 
successfully built and I
run "jam -q @anyboot-image", how do I clean out for the next run?

With make, there is "make clean", "make distclean, etc, but how do I do 
that with jam?

I tried "jam clean", but that was no good.
 
jam clean does clean some things but not everything.
Usually the simplest way is to delete generated/objects, and possibly 
generated/downloads and generated/build_packages.

That was my thought, but didn't really think I would need to delete 
generated/downloads, considering the same files would be downloaded on the 
next run.

Yes, if you are sure all the downloads went well, then only objects/
needs to be deleted. The others are for a really clean build, re-doing
all downloads and package extraction. There are some cases where you can
end up with an incompletely downloaded or incompletely extracted file,
and in these cases you need to delete it to force it to be re-downloaded
and re-extracted.

I also want try to build for amd64: part of the reason why I need more than 
one "generated" directory.

Since all the generated files are in the directory where you run
configure, there is no problem creating multiple ones.

mkdir generated.x86-64 ; cd generated.x86-64 ; ../configure …

(they can be located outside of the source tree as well, and there are
no constraint on their names).

-- 
Adrien.

Other related posts: