[Omake] multiple generator invokation
Sam Steingold
sds at gnu.org
Fri Jul 27 14:10:11 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a further question:
my_save(file) =
if $(file-exists $(file))
cp $(file) $(file).save
my_diff(file) =
save=$(file).save
if $(file-exists $(save))
diff -u $(save) $(file) || true
rm -f $(save)
UTDEST=../new
Ut(src) =
return $(addprefix $(UTDEST)/ut_, $(addsuffix .ml, $(addsuffixes
_by_freq _by_type _simple, $(src))))
Map(src) =
return $(addprefix $(UTDEST)/map_, $(addsuffixes .ml _flat.ml
_tree.ml, $(src)))
Gen(src) =
return $(src)_tick.ml $(Ut $(src)) $(Map $(src))
R_GEN = $(Gen foo)
A_GEN = $(Gen bar)
AUTOGEN = $(R_GEN) $(A_GEN)
$(R_GEN) : ./tools/gen_foo.exe
foreach($(my_save), $@)
$< -by_type -tp foo_tick.ml -ut $(UTDEST)/ut_foo.ml \
-map $(UTDEST)/map_foo.ml
foreach($(my_diff), $@)
I noticed that the generator ./tools/gen_foo.exe is invoked 6(!) times
in quick succession (few seconds). why?
PS. Aleksey, thanks for your help with functions!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGql8zPp1Qsf2qnMcRArWQAJ47JjGKsO+Ad8wgVGjHGTRUr8+ojQCfQsA3
/z8Y8Z4XKjwxpkvkchpn7dE=
=qaBM
-----END PGP SIGNATURE-----
More information about the Omake
mailing list