2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-01 20:32:17 +00:00
Files
build/test/generators-test/nm.jam
Dave Abrahams 09d88e1f8e Fixes for testing
[SVN r17642]
2003-02-25 14:37:10 +00:00

35 lines
491 B
Plaintext

import modules ;
rule target-source ( targets * : sources * : properties * )
{
if [ modules.peek : NT ]
{
main on $(<) = "int main() { return 0; }" ;
}
else
{
main on $(<) = "\"int main() { return 0; }\"" ;
}
}
actions target-source
{
echo "NM target source consuming " $(>)
echo $(main) > $(<)
}
rule cpp-mark ( targets * : sources * : properties * )
{
}
actions cpp-mark
{
echo "CPP-MARK consuming " $(>)
touch $(<)
}