mirror of
https://github.com/boostorg/build.git
synced 2026-01-31 20:12:19 +00:00
24 lines
464 B
Plaintext
24 lines
464 B
Plaintext
|
|
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) $(>) $(<)
|
|
}
|