mirror of
https://github.com/boostorg/build.git
synced 2026-01-26 06:22:26 +00:00
35 lines
469 B
Plaintext
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 $(<)
|
|
}
|
|
|
|
|
|
|
|
|
|
|