[Omake] Equivalent of the Makefile's wildcard

Aleksey Nogin nogin at metaprl.org
Thu Jan 8 10:21:02 PST 2009


On 08.01.2009 09:34, Chantal KELLER wrote:

>     Hello everybody,
> 
>   I cannot find how to transpose the following Makefile code (see
> above), or any other code using the keyword "wildcard", into OMakefile code.
> 
>   Thanks for your attention.
> 
> 
> 
> 
> SRC=$(wildcard *.dot)
> OBJ=$(SRC:.dot=.png)
> 
> png: $(OBJ)
> 
> %.png: %.dot
>         dot -Tpng $< -o $@

Chantal,

You can use the glob function - see
http://omake.metaprl.org/manual/omake-system.html#function:glob

Aleksey



More information about the Omake mailing list