
import notfile ;
import common ;

exe main : main.cpp ;

# Create 'main.cpp' from 'main.cpp.pro' using action
# 'do-something' defined below. 
#
make main.cpp : main.cpp.pro : @do-something ;

# In this example, we'll just copy a file.
# Need to find out the name of a command to copy a file.
CP = [ common.copy-command ] ;

# The action itself.
# The 'CP' variable is defined below
# $(>) is source 
# $(<) is target
actions do-something
{
    $(CP) $(>) $(<)
}
