File: Jamroot

package info (click to toggle)
boost-build 2.0-m11-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,624 kB
  • ctags: 2,387
  • sloc: ansic: 12,978; python: 5,209; xml: 4,782; cpp: 555; yacc: 456; sh: 237; makefile: 71
file content (23 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

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) $(>) $(<)
}