[Libguestfs] [PATCH] Fix building on architectures where ocamlopt is not available

Hilko Bengen bengen at hilluzination.de
Sat Mar 22 13:04:36 UTC 2014


* Richard W.M. Jones:

>> Wouldn't a rule without commands such as
>> 
>> mlguestfs.cmxa: mlguestfs.cma
>> 
>> also prevent make from building the two targets in parallel?
>
> Doesn't that mean that if mlguestfs.cmxa is out of date, simply
> running the mlguestfs.cma rule will build it (which it won't)?

Not sure if I understand you. 

If I cause mlguestfs.cmxa to be out of date by touching guestfs.cmx,
only mlguestfs.cmxa will be rebuilt.

If I cause mlguestfs.cma to be out of date by touching guestfs.cmo, both
mlguestfs.cma and mlguestfs.cmxa will be rebuilt. This could be fixed by
using an order-only prerequisite:

mlguestfs.cmxa: | mlguestfs.cma

Cheers,
-Hilko




More information about the Libguestfs mailing list