bzr branch
http://bzr.ed.am/elec/propeller-clock
57
by edam
added ulibc |
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 |
} |