bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circular dependency with order-only dependencies


From: Eli Zaretskii
Subject: Re: Circular dependency with order-only dependencies
Date: Thu, 24 Jan 2019 16:40:12 +0200

> From: Edward Welbourne <address@hidden>
> CC: "address@hidden" <address@hidden>, "address@hidden" <address@hidden>
> Date: Thu, 24 Jan 2019 10:16:01 +0000
> 
> A suggestion for a kludge-around for this: part of your make-file says
> how to regenerate the header from the data file, using an emacs binary.
> Condition that part of your make-file on existence of the emacs binary.
> 
> ifneq ($(wildcard $(BINARY)),)
> generated.h: source.txt # but don't overtly depend on $(BINARY) !
>       $(BINARY) ... command ...
> endif
> 
> (Overt dependence on $(BINARY) would make your graph cyclic.)
> Not pretty, but hopefully it can be made to work,

Thanks, I will try that.  (I thought about something like that, but
hoped a more elegant solution would be possible.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]