/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/utility/Jamfile

  • Committer: edam
  • Date: 2012-02-25 01:31:43 UTC
  • Revision ID: tim@ed.am-20120225013143-9fet2y2d3fjlrwez
added ulibc

Show diffs side-by-side

added added

removed removed

 
1
UCLIBCPP_DIR    = $(HOME)/Source/uClibc++ ;
 
2
 
 
3
rule FixCopy
 
4
{
 
5
        Depends $(<) : $(>) ;
 
6
        Clean clean : $(<) ;
 
7
        Depends all : $(<) ;
 
8
}
 
9
 
 
10
actions FixCopy
 
11
{
 
12
        sed -e "s/<utility>/<utility.h>/g" $(>) > $(<)
 
13
}
 
14
 
 
15
for file in [ GLOB $(UCLIBCPP_DIR)/include : [^.]* ]
 
16
{
 
17
        local _o = $(file:D=$(PWD)) ;
 
18
        if ( $(file:B) = "utility" )
 
19
        {
 
20
                _o = $(_o:S=.h) ;
 
21
        }       
 
22
        FixCopy $(_o) : $(file) ;
 
23
}
 
24
 
 
25
for file in [ GLOB $(UCLIBCPP_DIR)/src : *.cpp ]
 
26
{
 
27
        local _o = $(file:D=$(PWD)) ;
 
28
        FixCopy $(_o) : $(file) ;
 
29
}