[Omake] defining a function
Sam Steingold
sds at gnu.org
Mon Jul 23 15:39:37 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have this in my OMakefile:
my_save(file) =
$(if $(file-exists $(file)), $(rename $(file) $(file).save))
my_diff(file) =
save=$(file).save
if $(file-exists $(save))
$(shell diff -u $(save) $(file))
foo bar baz : OMakefile
$(foreach my_save, $@)
$< -o1 foo -o2 bar -o3 baz
$(foreach my_diff, $@)
i.e., I have a generator executable and I want to see what changes when
it is rerun
alas, omake does not like the above, the error message is:
*** omake error:
File OMakefile: line 9, characters 1-24
not a function
line 9 is "foo bar baz : OMakefile".
so, what am I doing wrong?
thanks!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGpS4pPp1Qsf2qnMcRAhw6AJ0bfipWkWFSkUpUj/jn0MJeIrcf3gCgq2D6
QveMiKy5VPBnDf/hx84O8Rs=
=UeJK
-----END PGP SIGNATURE-----
More information about the Omake
mailing list