]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/cdrom/Makefile.in
Final changes
[bacula/rescue] / rescue / linux / cdrom / Makefile.in
1 #
2 # Makefile for building a Bacula Rescue CDROM or remastering
3 #   a CDROM or ISO image adding the Bacula files.
4 #
5
6 .PATH:          .
7
8
9 first_rule: all
10 dummy:
11
12 #-------------------------------------------------------------------------
13
14 # Make an iso boot image
15 iso:
16         rm -f bootcd.iso
17         mkisofs -A "Bacula Rescue Disk" -V "Bacula Rescue Disk" \
18           -J -R -T -o bootcd.iso \
19           -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
20           -no-emul-boot -boot-load-size 4 -boot-info-table cdtree
21
22 remaster:
23         rm -f bootcd.iso
24         mkisofs -A "Bacula Rescue Disk" -V "Bacula Rescue Disk" \
25           -J -R -T -o bootcd.iso \
26           -b isolinux/isolinux.bin -c isolinux/boot.cat \
27           -no-emul-boot -boot-load-size 4 -boot-info-table cdimage
28
29 cdimage:
30         makecdimage --type=@type@ --where=@where@
31
32
33 # try booting it with qemu emulator
34 boot:
35         qemu -cdrom bootcd.iso
36
37 initrd:
38         ./makeinitrd
39
40 kernel:
41         ./makekernel @KERNEL@
42
43 binaries:
44         ./makebinaries
45
46 static-bacula: dummy
47         @(cd bacula; make copy-static-fd)
48
49 bacula: dummy
50         @(cd bacula; make)
51
52 copy-bacula:
53         cp -a bacula/ cdimage/
54
55 all:    kernel binaries bacula initrd iso
56
57 copy-static-fd: kernel binaries static-bacula initrd iso
58
59
60 # This needs to be customized for your burner.
61 burn:
62         cdrecord dev=ATA:@CDSTL@ gracetime=2 fs=4096k driveropts=burnfree -v \
63          -useinfo speed=48 -dao -eject -pad -data "bootcd.iso"
64
65 # Blank the CDROM assuming it is +rw
66 blank:
67         cdrecord dev=ATA:@CDSTL@ gracetime=2 -v blank=fast -useinfo speed=48
68
69 scan:
70         cdrecord -scanbus
71
72 distclean:
73 clean:
74 #
75 # Clean out files that are rebuilt
76 #
77         @rm -f bootcd.iso   
78         @rm -f 1 2 3 4
79         @rm -rf mnt
80         @rm -rf roottree/bin roottree/proc roottree/boot
81         @rm -rf roottree/lib roottree/sbin roottree/dev
82         @rm -rf roottree/dev roottree/sys roottree/sysroot
83         @rm -rf roottree/sys roottree/usr 
84         @rm -rf roottree/initrd roottree/cdrom roottree/mnt
85         @rm -rf roottree/tmp roottree/var          
86         @rm -f roottree/etc/services roottree/etc/exports
87         @rm -f roottree/etc/gshadow roottree/etc/shadow 
88         @rm -f roottree/etc/passwd  roottree/etc/group
89         @rm -f roottree/etc/hosts roottree/etc/bashrc
90         @rm -f roottree/etc/filesystems roottree/etc/fstab 
91         @rm -f roottree/etc/protocols roottree/etc/localtime
92         @rm -f roottree/etc/ld.so.cache
93         @rm -f roottree/etc/modules.conf roottree/etc/syslog.conf
94         @rm -rf roottree/etc/pam.d roottree/etc/ssh
95         @rm -rf roottree/etc/security roottree/etc/init.d
96         @rm -rf roottree/etc/udev roottree/etc/modprobe.conf
97         @rm -rf roottree/bacula-*
98         @rm -f cdtree/boot/isolinux/initrd.img
99         @rm -f cdtree/boot/isolinux/isolinux.cfg
100         @rm -f cdtree/boot/isolinux/vmlinuz
101         @rm -f cdtree/boot/isolinux/map
102         @(cd bacula; make distclean)