CDRules revision 4ee3f16d
1rule BuildHaikuCD haikuCD : bootFloppy : scripts
2{
3	# BuildHaikuCD <haiku cd> : <bootFloppy> : <scripts> ;
4
5	local mainScript = build_haiku_image ;
6	SEARCH on $(mainScript) = [ FDirName $(HAIKU_TOP) build scripts ] ;
7
8	Depends $(haikuCD) : $(mainScript) $(scripts) ;
9	Depends $(haikuCD) : $(bootFloppy) ;
10	BuildHaikuCD1 $(haikuCD) : $(bootFloppy) $(mainScript)
11		$(scripts:R=$(HAIKU_ABSOLUTE_OUTPUT_DIR)) ;
12}
13
14actions BuildHaikuCD1
15{
16	export cdImagePath="$(1)"
17	export cdBootFloppy="$(2[1])"
18	$(2[2]) $(2[3-])
19}
20