14 print "only build $doonly\n" if($verbose);
17 # made once for all targets
19 my ($dir, $conf, $nl)=@_;
22 if($doonly && ($doonly ne $dir)) {
28 print "Build in buildm-$dir\n" if($verbose);
31 $a = buildit
($dir, $conf, $nl);
35 my $o="buildm-$dir/manual/rockbox-build.pdf";
37 my $newo="output/rockbox-$dir-$version.pdf";
38 system("mv $o $newo");
39 print "moved $o to $newo\n" if($verbose);
42 $o="buildm-$dir/rockbox-manual.zip";
44 my $newo="output/rockbox-$dir-$version-html.zip";
45 system("mv $o $newo");
46 print "moved $o to $newo\n" if($verbose);
49 print "remove all contents in buildm-$dir\n" if($verbose);
50 system("rm -rf buildm-$dir");
56 my ($target, $confnum, $newl)=@_;
58 `rm -rf * >/dev/null 2>&1`;
60 my $c = sprintf('printf "%s\n%sm\n" | ../tools/configure',
61 $confnum, $newl?
'\n':'');
63 print "C: $c\n" if($verbose);
66 print "Run 'make'\n" if($verbose);
67 `make manual 2>/dev/null`;
69 print "Run 'make manual-zip'\n" if($verbose);
70 `make manual-zip 2>/dev/null`;
73 # run make in tools first to make sure they're up-to-date
74 `(cd tools && make ) >/dev/null 2>&1`;
76 runone
("player", "player", 1);
77 runone
("recorder", "recorder", 1);
78 runone
("fmrecorder", "fmrecorder", 1);
79 runone
("recorderv2", "recorderv2", 1);
80 runone
("ondiosp", "ondiosp", 1);
81 runone
("ondiofm", "ondiofm", 1);
82 runone
("h100", "h100");
84 runone
("h300", "h300");
85 runone
("ipodcolor", "ipodcolor");
86 runone
("ipodnano", "ipodnano");
87 runone
("ipod4gray", "ipod4g");
88 runone
("ipodvideo", "ipodvideo", 1);
89 runone
("ipod3g", "ipod3g");
90 runone
("ipod1g2g", "ipod1g2g");
91 runone
("iaudiox5", "x5");
92 runone
("iaudiom5", "m5");
93 runone
("ipodmini2g", "ipodmini2g");
95 runone
("h10_5gb", "h10_5gb");
96 runone
("gigabeatf", "gigabeatf");
97 runone
("sansae200", "e200");
98 runone
("sansac200", "c200");
99 runone
("mrobe100", "mrobe100");