4 # -o output to root.iso
5 # -D No deep directory relocation (and no RR_MOVED)
6 # -no-pad Don't pad to 150 sectors
16 gentree = script/gentree
17 genufs = script/genufs
18 geniso = script/geniso
19 genuzip = script/genuzip
20 gencard = script/gencard
23 mkuzip != which mkuzip
24 mkuzip_opts ?= -s 65536
25 mkisofs != which mkisofs
26 mkisofs_opts?= -quiet -D -R -no-pad -p CyberLeo
28 # Default device for burn target
33 checkroot = @if [ $(curruser) -gt 0 ]; then printf "\033[1;31mI need root\033[0m\n"; exit 1; fi
34 checkdeps = @if [ ! -x "$(mkisofs)" -o ! -x "$(mkuzip)" ]; then printf "\033[1;31mCheck depends! mkisofs: $(mkisofs) mkuzip: $(mkuzip)\033[0m\n"; exit 1; fi
47 script/burn $(.ALLSRC) $(dev)
49 card.img: boot.img root.img
51 ${gencard} -c $(worktree)/conf
52 @printf " \033[1;32m*\033[0m Complete"
54 boot.img: $(worktree)/boot
56 ${genufs} -p $(boot_pad) $(worktree)/boot
61 ${genuzip} $(.ALLSRC) $(.TARGET)
63 root.iso: $(worktree)/root
66 ${geniso} -n root $(.ALLSRC) $(.TARGET)
70 $(gentree) -t $(worktree) -r $(.ALLSRC)
72 $(worktree)/boot: root
74 $(gentree) -t $(worktree) -r $(.ALLSRC)
76 $(worktree)/root: root
78 $(gentree) -t $(worktree) -r $(.ALLSRC)
82 rm -Rf card.img boot.img root.img root.iso $(worktree)