[Scons-users] Need help in making a custom rule

aullidolunar at gmail.com aullidolunar at gmail.com
Mon Oct 22 12:09:05 EDT 2012


Hello!

This is my script:

BinName='bin-test'
CCFLAGS = ' `pkg-config --cflags gtk+-2.0` '
LINKFLAGS = ' `pkg-config --libs gtk+-2.0` '

CustomBuilder = Builder(action = 'build/BinName')
env = Environment(CCFLAGS=CCFLAGS, LINKFLAGS=LINKFLAGS, BUILDERS = {'test'

: CustomBuilder})

env.test
app = env.Program(target=[BinName], source=Glob('*.c'))

When I run "scons -Q", it compiles propertly, but...when I try to run
"scons test"...it returns: "Do not know how to make File target `test'"

My idea is to test my binary without been launched after the compile-link
operation.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121022/d6e68ef0/attachment.html>


More information about the Scons-users mailing list