Line | |
---|
1 | # This rule establishes a dependency, with no special build actions |
---|
2 | rule do-nothing ( target : source ) |
---|
3 | { |
---|
4 | DEPENDS $(target) : $(source) ; |
---|
5 | } |
---|
6 | actions quietly do-nothing |
---|
7 | { |
---|
8 | } |
---|
9 | |
---|
10 | # Make a non-file target which depends on a file that exists |
---|
11 | NOTFILE fake-target ; |
---|
12 | SEARCH on file-to-bind = subdir1 ; |
---|
13 | |
---|
14 | do-nothing fake-target |
---|
15 | : file-to-bind ; |
---|
16 | |
---|
17 | # Set jam up to call our bind-rule |
---|
18 | BINDRULE = bind-rule ; |
---|
19 | |
---|
20 | rule bind-rule ( target : path ) |
---|
21 | { |
---|
22 | ECHO found: $(target) at $(path) ; |
---|
23 | } |
---|
24 | |
---|
25 | DEPENDS all : fake-target ; |
---|
Note: See
TracBrowser
for help on using the repository browser.