* 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

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to