On Wednesday, June 4, 2014 9:44:09 AM UTC+9, Michael Levine wrote:
> Can someone offer a suggestion as to how to address the rest of the
> classes? I am open to using the lua parser, but would need help migrating
> my rules over to the new system.
>
>
I support trying the lua parser! Here's a a simple example that should do
what you want:
for index, filename in ipairs(tup.glob('*.cc')) do
if not string.find(filename, 'flycheck_') then
tup.rule(filename, 'gcc %f -o %B.o', '%B.o')
end
end
Of course, you'd have to fill in the blanks with your own compile
statement. The loop could be nicer, with a goto-continue or something, or
you could wrap tup.glob in a function to add filtering. Also, the natural
analogue to bang-rules are functions.
If you have other Lua questions I'd be glad to help (if I can).
Cheers,
Rendaw
--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.