[Omake] Computed dependencies

Alain Frisch alain.frisch at lexifi.com
Tue Oct 9 02:36:58 PDT 2007


Hello,

I cannot find a way to deal with the following situation in OMake. I 
have a tool "generator" that takes an input file and produces several 
targets whose names are specified in the input file. The tool has a 
command-line option to tell it to only display the set of targets for a 
given input file. For instance, if the input file foo would produce bar1 
and bar2, calling "./generator -dep foo" would write "bar1 bar2" on its 
standard output. So I'd like to do something like:

GEN = generator

IDL(name) =
   TARGETS = $(shell $(GEN) -dep $(name))
   $(TARGETS): $(name)
     $(GEN) $(name)

(or something similar for a .STATIC section).

The problem is that the generator itself is a target of the project. It 
seems I need some kind of stagging (the dependency graph cannot be fully 
built before some targets are compiled). How to deal with such a case?


   Alain



More information about the Omake mailing list