2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-26 06:22:26 +00:00
Files
build/test/generators-test/nm.jam
Dave Abrahams 12807f87fc More cygwin/NT compatibility fixes
[SVN r15267]
2002-09-11 15:40:32 +00:00

35 lines
469 B
Plaintext

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