haiku/build/jam/CDRules
Matt Madia 218aa6d9e8 Unified build_haiku_[cd|image] scripts. Fixes #5490.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-10 23:14:42 +00:00

19 lines
479 B
Plaintext

rule BuildHaikuCD haikuCD : bootFloppy : scripts
{
# BuildHaikuCD <haiku cd> : <bootFloppy> : <scripts> ;
local mainScript = build_haiku_image ;
SEARCH on $(mainScript) = [ FDirName $(HAIKU_TOP) build scripts ] ;
Depends $(haikuCD) : $(mainScript) $(scripts) ;
Depends $(haikuCD) : $(bootFloppy) ;
BuildHaikuCD1 $(haikuCD) : $(bootFloppy) $(mainScript) $(scripts) ;
}
actions BuildHaikuCD1
{
export cdImagePath="$(1)"
export cdBootFloppy="$(2[1])"
$(2[2]) $(2[3-])
}