[Omake] Omake for the D programming language SCANNER
Aleksey Nogin
nogin at metaprl.org
Thu Feb 14 17:15:31 PST 2008
On 14.02.2008 03:14, Susanne Lietz wrote:
> # this will not work
> .SCANNER: %.obj: %.d
> section
> # Scan the file
> deps[] =
> awk($<)
> case $'^import'
> deps[] += $2
> export
>
The script will probably collect the dependencies correctly, but it
fails to output them. You need something like
println($"$@: $(addsuffix .obj, $(deps))")
at the end.
Aleksey
More information about the Omake
mailing list