4 rule -Generate-Boiler- {
9 _f = "_-boiler-target-force-_" ;
11 _f = "_-boiler-target-noforce-_" ;
15 AGenBoiler gen-boiler $(_f) ;
17 actions quietly AGenBoiler {
20 if [ "z$fregen" != "z_-boiler-target-force-_" ]; then
29 llist=`find "$1" -mindepth 1 -maxdepth 1 -type f -name "*.cpp" -regex "^./[^._].*$"`
30 if [ "z$llist" = "z" ]; then
31 llist=`find "$1" -mindepth 1 -maxdepth 1 -type f -name "*.c" -regex "^./[^._].*$"`
32 if [ "z$llist" = "z" ]; then
41 llist=`find "$1" -mindepth 1 -maxdepth 1 -type f -name "*.cpp" -regex "^./[^._].*$"`
42 if [ "z$llist" = "z" ]; then
50 llist=`find "$1" -mindepth 1 -maxdepth 1 -type f -name "*.h" -regex "^./[^._].*$"`
51 if [ "z$llist" = "z" ]; then
52 llist=`find "$1" -mindepth 1 -maxdepth 1 -type f -name "*.hpp" -regex "^./[^._].*$"`
53 if [ "z$llist" = "z" ]; then
62 if [ "z$prjname" = "z" ]; then
66 for dname in `find . -maxdepth 8 -type d -name "[^._]*" -regex "^./[^._].*$"`; do
67 fname="$dname/Jamfile"
69 if [ "$fregen" == "ona" ]; then
70 if [ -e "${fname}" ]; then
74 if [ "$xskip" != "tan" ]; then
76 if [ "$?" = "0" ]; then
80 if [ "$xskip" = "tan" ]; then
84 dpp=`echo "$dname" | sed 's/^\.\//TOP /;' | sed 's/\// /g;'`
85 echo "SubDir $dpp ;" >"$fname"
88 if [ "$dname" != "./src" ]; then
89 dpp=`basename "$dname"`
90 fc=`echo "$dpp" | cut -c1-3`
91 if [ "z$fc" != "zlib" ]; then dpp="lib${dpp}"; fi
92 echo "Library ${dpp}.a :" >>"$fname"
95 if [ "$?" = "0" ]; then
96 echo "Main ${prjname} :" >>"$fname"
98 echo "C++Main ${prjname} :" >>"$fname"
101 llist=`find "$dname" -mindepth 1 -maxdepth 1 -type f -name "*.c" -regex "^./[^._].*$"`
102 for lname in $llist; do
103 dpp=`basename "$lname"`
104 echo " $dpp" >>"$fname"
106 llist=`find "$dname" -mindepth 1 -maxdepth 1 -type f -name "*.cpp" -regex "^./[^._].*$"`
107 for lname in $llist; do
108 dpp=`basename "$lname"`
109 echo " $dpp" >>"$fname"
112 llist=`find "$dname" -mindepth 1 -maxdepth 8 -type d -name "[^._]*" -regex "^./[^._].*$"`
113 if [ "z$llist" != "z" ]; then
114 if [ "$dname" = "./src" ]; then
116 for lname in $llist; do
118 if [ "$?" != "0" ]; then
119 dpp=`basename "$lname"`
120 fc=`echo "$dpp" | cut -c1-3`
121 if [ "z$fc" != "zlib" ]; then dpp="lib${dpp}"; fi
122 llibs="${llibs} ${dpp}.a"
125 if [ "z$llibs" != "z" ]; then
126 echo "LinkLibraries ${prjname} :" >>"$fname"
127 for lname in $llibs; do
128 echo " ${lname}" >>"$fname"
135 for lname in $llist; do
137 if [ "$?" = "1" ]; then
138 dpp=`echo "$lname" | sed 's/^\.\//TOP /;' | sed 's/\// /g;'`
139 echo "SubInclude $dpp ;" >>"$fname"
149 if [ "$fregen" == "ona" ]; then
150 if [ -e "$fname" ]; then
154 if [ "$xskip" = "tan" ]; then
158 echo "SubDir TOP ;" >"$fname"
161 for dname in `find . -maxdepth 8 -type d -name "[^._]*" -regex "^./[^._].*$"`; do
163 if [ "$?" = "1" ]; then
164 dpp=`echo "$dname" | sed 's/^\.\//TOP /;' | sed 's/\// /g;'`
165 echo "SubInclude $dpp ;" >>"$fname"
172 if [ "$fregen" == "ona" ]; then
173 if [ -e "$fname" ]; then
177 if [ "$xskip" = "tan" ]; then
181 echo "set-profile ;" >"$fname"
182 echo "set-target-locations ;" >>"$fname"
184 for dname in `find . -maxdepth 8 -type d -name "[^._]*" -regex "^./[^._].*$"`; do
186 if [ "$?" = "0" ]; then
188 if [ "$?" = "1" ]; then
189 if [ "$firsthdrs" = "tan" ]; then
194 dpp=`echo "$dname" | sed 's/^\.\//\(TOP)\//;'`
195 echo "HDRS += \$$dpp ;" >>"$fname"
199 if [ "$firsthdrs" = "tan" ]; then
204 echo "if ([ FileExists ${dollar}(TOP)/Jamrules.local ]) {" >>"$fname"
205 echo " include ${dollar}(TOP)/Jamrules.local ;" >>"$fname"